2 ms·
> Functions Should Be Short And Sweet, But Why? In my case the why (as well as many of the arguments here) is because I'm not a "superstar/rockstar ninja coder
by noir_lord 13y ago
> Functions Should Be Short And Sweet, But Why?
In my case the why (as well as many of the arguments here) is because I'm not a "superstar/rockstar ninja coder" and by keeping functions short, clear and with a descriptive name in 6 months when I open the file to fix the change request I won't have to spend 2 hours building a mental model of the system to fix the bug.
- mercurial 13y agoIf your rockstar coder makes functions five screen longs as a matter of habit, you may consider changing bands.