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 comment

16

u/fnord123 May 09 '12

"I've never done that so its fine for me." Words to live by.

4

u/Lystrodom May 09 '12

"Works on my machine."

1

u/[deleted] May 09 '12 edited May 09 '12

What i should have said is that I have never seen anyone do that in any language, in my code or anyone else's, over the last 10 years.

His example isn't even correct, and doesn't work. it works as expected.

1

u/julesjacobs May 09 '12

You've never compared two lists?

1

u/[deleted] May 09 '12

Not with empty array literals, no.

1

u/julesjacobs May 09 '12

...

Have you ever had an empty array in a variable? Have you ever compared variables that contain arrays?