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

Show parent comments

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?

3

u/fnord123 May 09 '12 edited May 09 '12

[] === [] and friends. There's a video kicking about with this shit.

edit: https://www.destroyallsoftware.com/talks/wat

1

u/ameyp May 09 '12

I thought the problem only lay with [] == [] and friends?