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

It’s to enable refactoring when it grows large. Most effective way I have found for 1k SLOC or larger functions. I usually don’t re-inline because the result after refactoring is almost always clearer.

Trying to in-place refactor those things is an exercise in frustration. That’s part of why they grow so large, from observing their proponents in action. They don’t actually know what the functions do, only where to add a new path and repeat themselves.



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

Search: