| ▲ | userbinator 4 hours ago | |||||||||||||
Limit function length: Keep functions concise, ideally under 70 lines. Shorter functions are easier to understand, test, and debug. The usual BS... yes, shorter functions are easier to understand by themselves but what matters, especially when debugging, is how the whole system works. Edit: care to refute? Several decades of experience has shown me what happens. I'm surprised this crap is still being peddled. | ||||||||||||||
| ▲ | puchatek 4 hours ago | parent | next [-] | |||||||||||||
This one, like some others in this style guide, can also be found in Clean Code. Not sure why you feel the need to call it "BS". Nobody is saying that your 75 line function is bad. It's a reasonable guideline. Juniors won't do this automagically. | ||||||||||||||
| ||||||||||||||
| ▲ | stouset 4 hours ago | parent | prev | next [-] | |||||||||||||
It’s a lot easier to understand entire systems when they’re composed of small, pure, straightforward parts. | ||||||||||||||
| ||||||||||||||
| ▲ | danparsonson 4 hours ago | parent | prev [-] | |||||||||||||
The low level stuff is also important. | ||||||||||||||