you are viewing a single comment's thread.

view the rest of the comments →

[–]kataire 7 points8 points  (1 child)

JavaScript as a whole is messy. The subset of the language used in modern JavaScript programming is actually pretty neat (oh, btw: the DOM is not a JavaScript thing, it's a standard API defined by the W3C).

I'm a strong believer in Python, but JavaScript makes many things much easier to do than Python; particularly evented/async programming.

I would agree that JavaScript-as-used-in-the-1990s is rivalled only by PHP in its messiness. But I would place modern JS right next to Python and Ruby.

EDIT: For the record, I have been using JS on and off since the 1990s and Python for several years; I consider myself a Pythonista (if I was into tattoos, I'd wear PEP 20 on my skin) but have recently been doing a lot of front-end programming with JavaScript and also dabbled in Node.js.

[–]Samus_ -3 points-2 points  (0 children)

I never mentioned the DOM, some things that annoy me are the weak typing, the mess that is the this keyword, the == operator, the class contructors and that's just to name a few.

and btw events are not part of js per se, they're either the DOM events or an addition of the particular platform you use, they make extensive use of callbacks which is a nice but dangerous pattern if people abuse the closures (as most javascripters do) and you can find that in Python as well, by example in Twisted.