Hacker News new | ask | show | jobs
by Turskarama 272 days ago
"Functions should always be short" is also one of those guidelines that people treat like a hard rule. There are occasions when a 100 line function is easier to read than 5 20 line functions, or god forbid 20 5 line functions.

Stop being overly dogmatic, it ALSO leads to worse code.

1 comments

There are occasions => There are only rare occasions.