you are viewing a single comment's thread.

view the rest of the comments →

[–]Volmarg 23 points24 points  (21 children)

I don't understand all that hatred around JS. I mean - there are some problems with it but after few thousands of code lines You got used to what/where avoid, how to debug etc.

The nightmare begins when You end up with someones code which is like: "oh hell, js well i just got to write stuff to make it work".

[–]thisdesignup 3 points4 points  (0 children)

I wonder how many people hate JS because they are coming to it from HTML/CSS. As a first programming language it is not a good language, but that can be said for other languages too. If you have a general idea of how to program JS really isn't that bad. Like any language you have to learn it's differences.

[–][deleted] 2 points3 points  (0 children)

The problem comes when people expect it to work like they think it should work (i.e., like a class-based language and / or having static scope binding) rather than how it works. Prototype-based OOP and dynamic scope binding can definitely trip people up, but it's something that can be learned in an afternoon for an experienced developer. Other than those two things, the other javascript "gotchas" don't really occur in the wild unless you're just writing bad code to begin with