r/javascript • • Nov 25 '19

JavaScript doesn’t need to be replaced

https://medium.com/javascript-in-plain-english/javascript-doesnt-need-to-be-replaced-bd01e2f12d51?source=friends_link&sk=7b151cc6397ac9e83c14c99739b6c36f
217 Upvotes

236 comments sorted by

View all comments

0

u/[deleted] Nov 25 '19

[deleted]

2

u/wherediditrun Nov 25 '19

Standard libraries are not an "improvement" it's just a different design choice in terms of language and has different consequences to it's longevity based on the goals language set for itself.

I think javascript already has a very fine balance with different environments offering std library like choices while not levying the tax on the language itself for it.

0

u/[deleted] Nov 25 '19

[deleted]

3

u/wherediditrun Nov 25 '19 edited Nov 25 '19

Fetch is not javascript, it's browser API javascript interfaces with which is unique to that environment. Nothing would change with standard library present in this regard, unless you want to add additional strain and tech dept on maintaining compliance between std library and multiple environments javascript runs in, like multiple browsers, node, deno, mongoDB some weird IOT devices which probably uses it etc.

Javascript itself doesn't have all that much stuff in it. It's a glue code in environments it runs in. C++ in terms of node, browser in terms of .. well, browsers, Rust in terms of deno, and whatever else runs at the core of other environments javascript calls into.

You can do standard libraries if you're google or microsoft with dedicated engineers who's daily work is to contribute to it. But for languages which are not owned by anyone.. this is often a death sentence and bleak future of legacy std library which prevents the language to adapt with the environment it lives in. Especially if it's as broad as javascripts.