News for hackers. Stuff that matters.
Re:How to win the coding interview by meowface on Tuesday May 31, 2016 @02:31AM (#11805028)
"// 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.
Re:How to win the coding interview by bobbles on Tuesday May 31, 2016 @02:40AM (#11805063)
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...