Comment by lisper
5 years ago
So many coding recommendations trip up when they fail to take into account Ron's First Law: all extreme positions are wrong. Functions that are too long are bad, but functions that are too short are equally bad. 2-4 lines? Good grief! That's not even enough for a single properly formatted if-then-else!
IMHO it's only when you can't see the top and bottom of a function on the screen at the same time that you should start to worry.
No comments yet
Contribute on Hacker News ↗