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

I worked on a program where the management had near-religious devotion to the one return statement paradigm. It made for a bunch of unnecessary nesting and locals just to comply. Even worse was strong resistance to using continue and break (outside of switch statements), which lead to unnecessary flagging variables on top of that.



I would show them http://www.cis.temple.edu/~giorgio/cis71/software/roberts/do... and hope it changed some minds.




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

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

Search: