This is satire but it's pretty lame and unconvincing satire, so much so that I didn't realize it until about 1/3 of the way in. The funniest thing here is a Go developer complaining about <i>JavaScript's</i> unpredictable behavior.<p>I'm not going to take the bait and start a flame-war. I will just say that odd quirks don't make either of them a bad language because they each have many other benefits. And that the author shouldn't quit his day job to become a comedian.
This had me laughing the whole way through.<p>One of the most sarcastic put-downs of a language I've ever seen.<p>It won't change anyone's mind; that's not its purpose.<p>It's meant to be funny. Don't take it too seriously. Read it for fun.<p>--<p>EDIT: We all know there are <i>lots</i> of reasons to use JS for a ton of use cases -- indeed, JS is currently the most widely used language on Stack Overflow: <a href="https://insights.stackoverflow.com/survey/2019#technology-_-programming-scripting-and-markup-languages" rel="nofollow">https://insights.stackoverflow.com/survey/2019#technology-_-...</a> -- but that doesn't mean we can't recognize and laugh at the idiosyncrasies of the language :-)
<p><pre><code> 3.14 % 5
// 3.14
13.14 % 5
// 3.1400000000000006
</code></pre>
There's nothing strange about this, it is, as you would expect, exactly 13.14 - 10.
If you enjoyed this, you'll also enjoy this "Wat" video:<p><a href="https://www.destroyallsoftware.com/talks/wat" rel="nofollow">https://www.destroyallsoftware.com/talks/wat</a>
Ah, it got me, I have to admit it. I thought the author was just mildly confused about JavaScript after skimming most of the article, and then I looked again at the date. I’m the April fool. I don’t mind using doubles for integer arithmetic though, they have 53 bits of mantissa, so you have a larger range of exact integer arithmetic than with an Int32Array...
This is an Aprtil fools right?<p>>> This is something I have been waiting for: exact arithmetics. It is incredible to think about a language having such a feature.<p>Haha!