Two coding styles: 1
Two coding styles:
1. A few long functions
2. Many small functions
I prefer small, focused functions. I find they’re easier to understand, test, reuse, compose, and change.
I often think “This function is too long. It does too much.”
I rarely think “This function is too short. It does too little”.