News for hackers. Stuff that matters.
Re:How One Missing `var` Ruined our Launch by dikbrouwer on Monday October 31, 2011 @06:59PM (#3179547)
One thing you can do to help avoid this: use JSLint (or something equivalent) to check for missing var keywords. And, the obvious (as you already mentioned) coffeescript. Would love to hear of other suggestions on how to effectively debug this, especially in node.
Re:How One Missing `var` Ruined our Launch by Waquo on Monday October 31, 2011 @07:29PM (#3179671)
Indeed, JSLint or JSHint would have cought this. The claim that "nothing I could do in best practice ... would have caught the offending line" is false.
Re:How One Missing `var` Ruined our Launch by NegativeK on Monday October 31, 2011 @07:43PM (#3179721)
JSLint was my first response, but I have to agree with someone higher up -- use strict is probably a better solution, since it'll happen whether you like it (or forget it) or not.
Re:How One Missing `var` Ruined our Launch by dikbrouwer on Monday October 31, 2011 @10:01PM (#3180206)
using strict sounds like a great idea - I wonder what other implications that has, need to look into it.