5 comments

[ 3.3 ms ] story [ 20.7 ms ] thread
This rant isn't very constructive. Yes, JavaScript has it's problems, but then again, so do many languages.
I agree I just had to rage for a second. At some point, I'll have to learn to into TDD or just start using sanity checks liberally (because I've lost mine)

Thank you for taking the time to read =)

I write a lot of JavaScript and one thing that helps me is using Firefox Developer Tools or the Chrome Developer Tools. Usually you will get a decent error message, although it's not perfect. Another thing to check out is a framework (like Backbone.js) - it'll make your life so much easier in the long run. Also, JavaScript kind of has it's own take on traditional design patterns, which I use frequently. Addy Osmani has a free book that has proven to be invaluable for me - http://addyosmani.com/resources/essentialjsdesignpatterns/bo...
Well, at least some of this is fixed by "use strict", which will loudly error if you use a non-existent variable.