by martpie · 7y ago · 0 comments
That said, a lot of people say JavaScript is bad. And yet this language is one of the most popular one in the world.
And people never ask themselves: "oh, maybe there is something I did not understand about the language/ecosystem".
> "There are only two kinds of languages: the ones people complain about and the ones nobody uses."
Peace.
ps: also, it's not the tools that matter, but what you build.
I don't think it's a very controversial idea that JS is popular due to its monopoly status rather than its qualities (whatever we argue them to be).
I find it hard to imagine that JS would have ever been very popular on the backend or on smartphones if it wasn't for the monopoly of the frontend. The fact is, today you can cover many bases with this one language. This is great for businesses where the primary concern is how quickly you can get a new person to sit in someone's seat, so this opens up a lot of jobs. A lot of jobs means a lot of incentive to learn the language, closing the loop.
In short, for many actors on the market, there are many reasons to use JS without having to like JS, or even care about its qualities as a language.
I'm not sure why it's hard to swallow that JS (the cultural phenomenon) has qualities that aren't inherited from JS (the artifact).
...this includes JS - every browser includes an engine that does exactly this, in fact.
It’s this lack of understanding of how the language and browsers function that makes these tired arguments particularly infuriating.
Of course not. Neither said by me, or your post I quoted. HTML and CSS aren’t any more “native apis” then the JS implementation of the w3c spec anyway either.
The post is about the fact that just because something is popular, it doesn't necessarily mean it's good. The fact that JavaScript is popular cannot be used as proof that it's a good technology. It had a monopoly of the browser market for decades. If Netscape put COBOL there, everyone would be programming in COBOL today.
https://betterexplained.com/articles/logical-fallacy-popular...
"Rambling, rambling, rambling" part is especially unnecessary. How about quoting parts from the article instead and let us know what you think is wrong? As it is, I cannot imagine what I would reply to this "criticism", besides the fact that it incorrectly implies that popularity necessarily means quality.
Your post was rambling, in the sense that you make an assertion but then you complain about things not that related to your assertion. You never even define what you mean by bad. Then you use these reasons as justifications for why it’s “bad”:
A) Left pad exists. Basically, people in JS use packages instead of writing simple things themselves
B) A weird design decision with Axios, a third party library
C) A bug in Axios has been left open for a while
D) The built in map function is weird
E) Babel / Webpack get more money than OpenSSL
Only D is actually about the language itself, and E sort of is in a tertiary way but you never actually explain in any depth what your issue with Babel and Webpack getting funding is or what it means about JavaScript.
So, maybe it does not prevent SOME people, but it's about to prevent me.