News for hackers. Stuff that matters.
Re:Tern – Intelligent JavaScript editing by V1 on Thursday March 07, 2013 @06:02AM (#5337071)
Backed. Like everybody who touches JavaScript should do. Also. mmmm finally decent vim bindings for javascript?

I do wonder how it will compare to Eclipse Orion's JavaScript content assist which is using Esprima as parser.

http://contraptionsforprogramming.blogspot.nl/2012/02/better...

Re:Tern – Intelligent JavaScript editing by marijn on Thursday March 07, 2013 @06:12AM (#5337095)
(I'm the author of Tern -- I'm obviously biased.)

It compares very favorably. The Orion approach, as I understand it (I only did some quick messing around with scripted, am not an expert) is very local, whereas Tern tries to do whole-program analysis. This should allow it to pick up much more information.

Re:Tern – Intelligent JavaScript editing by visarga on Thursday March 07, 2013 @06:24AM (#5337122)
Is it able to track all dependencies in a web page for autocomplete? I mean, keywords defined in dependent files - do they automagically work?
Re:Tern – Intelligent JavaScript editing by marijn on Thursday March 07, 2013 @06:27AM (#5337129)
Not magically. That part is, for now, in the scope of the IDE/editor plug-in. You can feed Tern a set of files to analyze, but Tern doesn't, for example, scrape HTML files to determine inclusions.

The one exception is requirejs-style dependencies. Those, if you give Tern some information on where to look, it will resolve and automatically include. I'll do something similar for node.js-style require calls in the future.

Re:Tern – Intelligent JavaScript editing by gngeal on Thursday March 07, 2013 @08:07AM (#5337370)
"whereas Tern tries to do whole-program analysis."

I suppose you're not doing live type feedback? Given a test suite for the code being edited, that would seem like a natural thing to do.