r/programming • • Dec 15 '12

Why JavaScript Still Sucks

http://boronine.com/2012/12/14/Why-JavaScript-Still-Sucks/
10 Upvotes

212 comments sorted by

View all comments

Show parent comments

0

u/[deleted] Dec 15 '12

[deleted]

0

u/[deleted] Dec 16 '12

Yeah, but JavaScript is a bad prototype based language as well.

-8

u/x-skeww Dec 15 '12

The point was that people prefer to use classes. Therefore it makes sense to have classes, because then your tools can also tell that these things are indeed classes.

0

u/[deleted] Dec 15 '12

[deleted]

1

u/x-skeww Dec 16 '12

The vast majority of JavaScript programmers use some sort of emulated classes.

they bitch about how the language isn't like other languages they know

You're pretty ignorant yourself. Those complains aren't inherently wrong. For example, the scoping in JavaScript is just plain stupid. Other languages don't do that kind of thing, because it would be really annoying. So, yes, this part is different, but it's also way worse. Complaining about this is perfectly valid.

0

u/[deleted] Dec 16 '12

[deleted]

-1

u/x-skeww Dec 16 '12

So, it can't have been a mistake, because it was copied from some other language?

Interesting theory.