News for hackers. Stuff that matters.
Re:Unix as IDE by WayneDB on Wednesday February 15, 2012 @09:31AM (#3594323)
Visual Studio autocompletes Javascript by executing the Javascript and using stub objects for anything that they don't actually want to run (e.g. window, XmlHttpRequest, etc).
Re:Unix as IDE by ori_b on Wednesday February 15, 2012 @01:11PM (#3595337)
That sounds incredibly baroque, complicated, and fragile.
Re:Unix as IDE by windsurfer on Wednesday February 15, 2012 @01:35PM (#3595442)
Sure it is, but so what? Would statically analyzing the code really get you any further?
Re:Unix as IDE by ori_b on Wednesday February 15, 2012 @04:55PM (#3596288)
Type inference would get you quite a way. Using a language that allows effective tooling would get you even farther.
Re:Unix as IDE by WayneDB on Thursday February 16, 2012 @11:40AM (#3599429)
Replacing Javascript with a better language has not been possible thus far. There have been many attempts, but getting every browser maker to agree on something is like herding cats.

So, when life gives you lemons, you make lemonade. We're stuck with Javascript. Personally, I think running the code while you're developing it is a brilliant way of dealing with the problem of how to do proper autocomplete on a dynamic language.

Re:Unix as IDE by aaronblohowiak on Wednesday February 15, 2012 @02:29PM (#3595657)
.. in other words, javascript