r/programming • • Mar 26 '14

JavaScript Equality Table

http://dorey.github.io/JavaScript-Equality-Table/
809 Upvotes

331 comments sorted by

View all comments

Show parent comments

1

u/rjcarr Mar 26 '14

True, I guess you're right, when you let equality do coercions then things can get really ugly. That's why I said to always use the === so you don't have to deal with it, but as you pointed out, that was sort of the point of the table.

0

u/[deleted] Mar 26 '14

Do not make the same mistake as I did. I beg you. I would give the world to not have made those mistakes. Broken keyboards, missed deadlines and grey hairs are things that never leave the eye of the mind.

0

u/rjcarr Mar 26 '14

Ha, I've been writing javascript for about 10 years so I think I'll be fine. :)

0

u/[deleted] Mar 26 '14

I have been writing JavaScript for 8+ years. And I know I will never be able to write it flawlessly. There are too many stupid cases in that table. There are natural languages with 8 or more denominations, which is fine if they are used daily. However, in JavaScript, where one should purposely avoid this stupidity, no-one should ever, ever use these, and most certainly not frequently.Therefore it is worthless, less than worthless. It is a flaw in the language. It is a part of the language that should not exist. This is why CoffeeScript, Go, the many libraries for (or rather against!) JavaScript and TypeScript exist.