Lots of folks only see the DOM and the bad parts when working with JS - these two projects have shown me there's so much more.
Lots of folks only see the DOM and the bad parts when working with JS - these two projects have shown me there's so much more.
Agreed that you can't blame Javascript for the DOM, but there are lots of bad parts aside from that. Default global scope and semioptional semicolons are gigantic WTFs, the with statement should be nuked from orbit, and there are generally lots of ways to write code that appears to be correct but is just waiting to fail in bizarre ways. It's just annoying that we're stuck with Javascript because it's so entrenched, while Python and Ruby offer all of its strengths in much saner packages.
I can't speak for Ruby, but in many ways JS is more powerful than Python, especially on the functional side of the house.
For me, approaching JS as a functional language has been the key to writing good clean JS. jQuery helped me with this by allowing me to ignore all the psuedo OO stuff in JS and concentrate on the functional features.