Ask YC: What editor/ide do you use to hack javascript?
I've used emacs so far, though it's good at syntax highlighting. I would like something that can show glaring mistakes, like calling a function with the wrong number of arguments, or referring to a variable which hasn't been defined. Thanks.
31 comments
[ 1.9 ms ] story [ 81.1 ms ] threadProbably will need to buy pro as the sftp feature is disabled in the community version.
More info a http://www.jetbrains.com/idea/features/javascript_editor.htm...
I use Komodo Edit, the free IDE from Activestate. (I'm not associated with them, I just love their editor. Okay, well, they quote me, but once again, because I love their editor.)
It supports javascript out-of-the-box, will read into your source files and update it's code hints based on YOUR functions, and can be told to parse the libraries you use and provide coe hints for THOSE functions, too.
The only thing I wish they had built-in was the ability to lint it, but I go over how to add that in my article above.
And in fact, you can go one step further and use Douglas Crockford's actual (much better) jslint, provided you have rhino installed. I'll have instructions on how to do that up on my blog eventually.
How do you write your js?
I write a few lines and then test the functionality, reduces the scope of where I have to hunt down bugs.
I usually write a few lines, refresh & test manually, write a JSUnit test case to cover what I just checked out, run tests & hope for a green bar, check-in, then repeat.
Nah, just kidding; gvim