Hacker News new | ask | show | jobs
by bazoom42 1147 days ago
Agree - if a function is otherwise cohesive and doesnt mix independent concerns, I prefer one 100 line fuction to 25 4-line functions.

Splitting functions is tempting because it makes each individual function seem simper, but the higher cost in complexity and maintainability is not as directly visible.

Shorter functions are fine when appropriate, but length by itself is not an indicator of quality.