Live data from Hacker News

Tern – Intelligent JavaScript editing

ternjs.net

31–40 of 82 posts

Re: Tern – Intelligent JavaScript editing

#31
post #14
post #12

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...

(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.

"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.

Re: Tern – Intelligent JavaScript editing

#32
post #30
post #28

Looks cool! How do you gauge the difficulty of adding support for CoffeeScript to this? Re the indiegogo campaign: I think you should consider adding an extra supporter tier between 25 USD and 1000 USD. The 200 USD tier of CoffeeScript Redux http://www.kickstarter.com/projects/michaelficarra/make-a-be... brought in over 20% of the total amount pledged.

Interesting. Their 200 dollar tier is basically my 'all backers' tier (name in a readme file). But I can probably come up with something slightly more valuable to offer at ~250€. As for CoffeeScript support -- the only major piece missing there is an error-tolerant CoffeeScript parser. Given that, one could simply run the CoffeeScript compiler over code, and analyze the output. There'd be some shuffling with source m…

a signed copy of your book? :}

Re: Tern – Intelligent JavaScript editing

#33
"Tern is not currently open source. I'd like it to be, but I have to pay my bills. So I'm running a crowd-funder where interested parties can pledge money. If successful, Tern will be released under an MIT license."

Very odd model... take your code.

Re: Tern – Intelligent JavaScript editing

#34
IntelliJ's WebStorm has pretty JavaScript code completion and related tools. It also has plugins for popular libraries and frameworks, node.js and a variety of other HTML5 / latest-web-coolness stuff. Seems like a lot of folks in the AngularJS community have been using it it as well.

Disclaimer: I liked it enough to buy a personal license :), but am not affiliated with the folks who make and sell it.

Re: Tern – Intelligent JavaScript editing

#35
post #33

"Tern is not currently open source. I'd like it to be, but I have to pay my bills. So I'm running a crowd-funder where interested parties can pledge money. If successful, Tern will be released under an MIT license." Very odd model... take your code.

What do you mean?

Re: Tern – Intelligent JavaScript editing

#36
post #35
post #33

"Tern is not currently open source. I'd like it to be, but I have to pay my bills. So I'm running a crowd-funder where interested parties can pledge money. If successful, Tern will be released under an MIT license." Very odd model... take your code.

What do you mean?

I mean that from my point of view "gimme money if you want that open sourced" is very bad approach.

Either build your closed source business, or try to earn from an open source product to pay the bills.

1) What is the current state of the source code? It could be a mess.

2) The value of open source is mostly in continued developments, support, community, not just in releasing the code itself.

3) If you have this mindset, who guarantees me that tomorrow you'll write plugins that are closed and ask again for money to release?

Re: Tern – Intelligent JavaScript editing

#37
post #36
post #35

Earlier quoted context omitted.

What do you mean?

I mean that from my point of view "gimme money if you want that open sourced" is very bad approach. Either build your closed source business, or try to earn from an open source product to pay the bills. 1) What is the current state of the source code? It could be a mess. 2) The value of open source is mostly in continued developments, support, community, not just in releasing the code itself. 3) If you have this mind…

As for trust, the JavaScript community knows me as the maintainer of CodeMirror, and apparently likes the way I'm handling that project. This seems to lead people to believe that I won't deliver a horrible mess, and that I won't try to rip them off after the fact.

Starting up a project with a crowd funding does not make it impossible to later fund continued maintenance by selling support and such. It is a way in which I'm safeguarding my initial investment.

In short, I still fail to see the problem.

Re: Tern – Intelligent JavaScript editing

#39
post #37
post #36

Earlier quoted context omitted.

I mean that from my point of view "gimme money if you want that open sourced" is very bad approach. Either build your closed source business, or try to earn from an open source product to pay the bills. 1) What is the current state of the source code? It could be a mess. 2) The value of open source is mostly in continued developments, support, community, not just in releasing the code itself. 3) If you have this mind…

As for trust, the JavaScript community knows me as the maintainer of CodeMirror, and apparently likes the way I'm handling that project. This seems to lead people to believe that I won't deliver a horrible mess, and that I won't try to rip them off after the fact. Starting up a project with a crowd funding does not make it impossible to later fund continued maintenance by selling support and such. It is a way in whic…

> This seems to lead people to believe that I won't deliver a horrible mess

That, and View Source.

Re: Tern – Intelligent JavaScript editing

#40
post #25
post #22

Earlier quoted context omitted.

Weird, I'm on almost the exact same version (24.0.1312.57) and it does nothing when typing any number of '['. I have the branded version of Chrome, though, but still, weird!

The problem is fixed now, so the fact that it works shouldn't come as a surprise.

The demo doesn't seem to work on Chrome 25.0.1364.152 m. I'm getting this error whenever I try any of the shortcuts (or when I select a command from the drop down):

Uncaught TypeError: Cannot set property 'curOrigin' of undefined (infer.js:489)

Looks interesting though!

Post reply on HN