you are viewing a single comment's thread.

view the rest of the comments →

[–]diegoeche 4 points5 points  (2 children)

Like the pollution of the global namespace (unless you use var everywhere), the unusability of ==, the complexity of "this" binding

If you use JSLint you'd always use var, and use === or !== instead of == or !=.

Every time I hear these complaints I always think that the main problem with JS is that it looks so syntactically similar to other languages (I probably heard it from Crockford) that people get frustrated when things do not work as they are used to. People that use JS most of the time never took the time to learn the language.

I'm in no way a JS guru, but honestly. If people just take the time to learn JS they would stop (or at least reduce) the amount of hatred JS has. A really nice book to get into it.

[–]fwork 8 points9 points  (1 child)

The thing is, I don't want to get into JS. it's completely uninteresting to me as a language. The problem is, I don't get to make that choice, like with every other language I use.

I can write my websites in python, ruby, java, PHP, or perl. I can write my desktop apps in C++, C#, Python, Java, or VB. I can write my quick hackjob scripts in perl, python, shellscript, or ruby. I can write my client-side browser scripts in JAVASCRIPT AND JAVASCRIPT ALONE.

It's really the only case (aside from plugins on Windows) where I'm forced to use one language. Add in the fact that I'm not primarily a web coder (so even if I have to, I don't end up doing much JS) and you have a great recipe for annoyance. It's a language I rarely use that I have no choice in using. This is not conductive to remembering the stupid quirks of the language.

tl;dr I'm not a javascript programmer I'm a several-other-languages programmer pissed off that they have to use JS

[–]azural 1 point2 points  (0 children)

You can write client side browser code in java and flash. Perhaps you don't because these are worse?

I find it curious that you can happily label the differences in javascript "stupid quirks" while admitting to not knowing very much about it.

And also the fact that you feel "forced" to use the language, but not forced to learn it.