Hacker News new | past | comments | ask | show | jobs | submit login

That's not always true, the best cases for inlining one-use functions is when you don't introduce new local variables.

I've seen 1k LoCs functions that were incredibly easy to understand, and 10 liners that were complete gibberish messes.

I do however agree that declaring new variables every 10 lines over hundreds of lines would be hell to follow.




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

Search: