News for hackers. Stuff that matters.
Re:How One Missing `var` Ruined our Launch by speleding on Tuesday November 01, 2011 @05:01AM (#3181235)
I know there seem to be a few HN readers religiously against using an IDE, but in this case an IDE would have probably helped. Since it colors global and local variables differently the error would be much more apparent at the time when it was made (you typically have very few global variables so they stand out color wise).
Re:How One Missing `var` Ruined our Launch by thomblake on Wednesday November 02, 2011 @12:34AM (#3185434)
No IDE needed - any decent editor will do syntax highlighting.
Re:How One Missing `var` Ruined our Launch by speleding on Wednesday November 02, 2011 @04:28AM (#3185844)
Global versus local variables is not determined by syntax in javascript, it's determined by semantics (you need to parse javascript to find out). A few editors can do that, but you could really call those an IDE already.
Re:How One Missing `var` Ruined our Launch by thomblake on Friday November 11, 2011 @02:47PM (#3225874)
Parsing is syntax. Interpretation is semantics. Just parsing JS just gives you information about its syntax, and any decent editor (like vim or emacs) has a programmable interface such that you can write a JS parser.