Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I only agree with this in the case of pure functions. However, when your function has a side effect (quite usual in C++ methods for example) then all readability gains are lost.

I much prefer inlined code that reads from top to bottom, rather to have to jump all over the place into single purpose functions.



I like this. I never really thought about it this way, but I'm much more okay with long functional methods rather than long mutating method




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: