r/programming • • May 09 '12

JavaScript: The good parts

http://blog.movereem.nl/images/javascript-the-good-parts-the-definitive-guide.jpg
645 Upvotes

159 comments sorted by

View all comments

21

u/[deleted] May 09 '12

Old, and wouldn't this be true of every language?

9

u/yogthos May 09 '12

There is the principle of least astonishment, and JavaScript is one of the worst languages in that regard.

4

u/[deleted] May 09 '12

In what way?

2

u/munificent May 09 '12

ASI.

3

u/masklinn May 09 '12 edited May 09 '12

ASI is nothing compared to the way this behaves (or doesn't, mostly) in JS .

1

u/munificent May 09 '12

Yeah, but at least there's an underlying logic and some value behind this semantics. ASI is just busted.