loading...

re: Is JavaScript the most confusing programming language? VIEW POST

TOP OF THREAD FULL DISCUSSION
re: I think it's dishonest and counterproductive to pretend that all languages are equal. TypeScript is in fact born out of the problematic reality tha...
 

Like @jordan explained, Javascript is weird. But examples like let and var is an attempt to solve this not another weirdness. I had one of my most disturbing bugs recently, I completely forgot typeOf NaN === number. That is literally saying 'not a number` is a number.

But just like the English language understanding this weirdness is the only way you can call yourself a fluent speaker of the language. In English you could say 'Giver her her book', but never "Give him him book". "How are you" is supposed to be for a singular person, but "are" in every other situation is plural. We just accept this "bug" and appreciate the more expressive part of the language.

 

I understand the point you made regarding English language, but comparing shortcomings of English language with a programming language is like comparing human brain with AI.

code of conduct - report abuse