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

Except...these are right. Minimizing nesting, and setting up validation failures as exit-early conditions from functions to have the main function body focused on the happy path are absolutely valid principles of clean code.

Obviously there are always exceptions, but as a principle you could do a lot worse.



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

Search: