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

"// throw if we didn't get a string" before a throw statement two lines away from "make sure we have a string" would annoy the hell out of me in production code.


I can see a case for it if during the next 2 years of development more code is added between 'make sure' and 'throw...' because you do not want to want to worry about refactoring comments when code gets moved...




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

Search: