views:

63

answers:

2

I'm looking for ways to make developing big server sided Javascript (I'm working with Node.js) projects a whole lot easier.

Basically, the problems I'm facing with Javascript is that I'm not being warned when I make a syntax error, or when I mix different kinds of object types in the same arrays/variables etc.

I was using haXe to solve these problems (as it gave me back a compiler), however the problem with not writing directly in Javascript is that one has to create bindings for every existing javascript library.

Maybe there is an IDE that can help me write errorless code?

I'm basically wanting to hear more about your experience with making development of big javascript projects easier.

Thanks in advance.

+5  A: 

All of Jetbrains IDEs can do that, e.g.: http://www.jetbrains.com/webstorm/

glebm
Including strict typing? Eg. var someInt[Int]; as variable declaration?
Tom
+1 - There is only so much checks that an IDE can do for a dynamic language. It's not the IDE's fault, but has to do with the language itself. However, JetBrain's IDEs do a pretty good job at deducing as much of the information as possible including inspecting the return types from each function to figure out the type of a variable as it travels through these functions, and several other optimizations.
Anurag
I'm not saying it's the IDEs fault, but it would be a good feature.
Tom
I don't think it can do strict type checking, but it can definitely be as helpful as JSLint (and even more IMO)
glebm
+1  A: 

If you happen to have Visual Studio 2010 then you could install the JSLint extension and configure it to enforce validation at build-time.

LukeH