r/javascript • • Dec 26 '18

The Major and Minor Wrongs of JavaScript

https://mianlabs.com/2018/12/25/the-major-and-minor-wrongs-of-javascript/
1 Upvotes

4 comments sorted by

11

u/Pyrolistical Dec 26 '18

"Wrong #3: Three Not-A-Real-Number Values: Infinity, -Infinity, NaN" yet another example of how devs don't know what is IEEE floating point

7

u/Randdist Dec 26 '18

Yeah, was going to complain about that too. Floats/doubles in js are fine. As fine as in any other language that adheres to the standard

4

u/shanita10 Dec 27 '18 edited Dec 27 '18

Nearly everything he is whining about is a non issue if you run a linter. What a wasted article.

2

u/tencircles Dec 28 '18

Wrong #4: Two “null” Types

Null represents the intentional absence of an object value per the spec. I wouldn't call this a "major wrong".

Wrong #7: The var Keyword and Function Scoping

This has never been an issue if you understand lexical scope.

Convoluted and poor inheritance model

It's just prototypal inheritance, pretty straight forward. Classes are just sugar for prototypes.

Poor standard library

How so? Other than the lack of a composition operator (*not pipeline) I have no issues.

TL;DR OP repeats "Other languages do X, ECMAScript does not do X and is therefor wrong." several times.