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

A nitpick I have with this specific example: would `handle_suspend` be called by any other code? If not, does it really improve readability and maintainability to extract it?


The idea is that performance isn’t a reason not to do it. Other considerations may cause you to choose inline, but performance shouldn’t be one of them.


re-use as a criteria for functional decomposability is a very misguided notion




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

Search: