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

Good point, code readability is often the best thing to optimize for.

Your change also got me thinking of unit tests: at some point it becomes worthwhile to have dedicated tests on that condition, and that's often easiest by putting it in a static method, and that also improves readability.



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

Search: