In the 90s, vendors seriously invested in major development suites (Visual Studio, Visual Age, C++ Builder, Delphi, Visual Basic) and improve languages (Java, C#, Pascal, Basic) for desktop environments. But the web development landscape is largely dominated by Javascript, which is actively hated, and Typescript, a better but far from great alternative, with everything else being a tiny percentage. What happened?
The is a steady stream of js contempt on HN. I don't think it's representative of how actual devs think about JS. The contempt forever seems stuck at the shallowest stages, of assuming JSnis terrible & disparaging it out of hand, without making a single claim or contention.
Building on the web is not difficult & gets your experience in front of users fast. We've made better and better tools, while exploring a huge variety of app development styles.
I don't know what js did to so many of y'all. I've done web stuff across libcgi, perl, php, java, and yeah early js has some warts but it's like 98% the same as any other language would be (even if classes looked weird for the first decade). The npm package management ecosystem is vastly easier to use & understand than anything I'd seen before. It's unclear what about this language makes people so miserable, and it's not something I've seen in person in my professional career. But the contempt is on high display regularly in the comments.
The language itself is fine, and incongruities have long been polyfilled.
With Shared Array Buffers, Webworkers, WASM and WebGPU, offloading heavy computational work will only become easier.
We're stuck with JS because it's easier to just improve it than swap out the entire ecosystem. Now it's quite good.
1. Cobol is still around and it is much older than JS 2. Cobol systems is not as entrenched client side JS. It is used on websites because it is what browsers support.
My understanding is that Cobol is still largely relevant in the banking industry, it’s not mentioned that often.
Someone could correct my if I’m wrong and has more insight.
Javascript is deeply unpleasant to work with in any way.
The mistake was all of the extra complexity and nonsense that came about when SV realized the web was Serious Business. Having to compile it from a "strict superset" language because Serious Business means strict types and tests, tests tests. Taking it out of the browser, aligning the entire ecoysystem to a single, fragile, badly designed point of failure. Let's abandon the entire field of application programming and just ship an entire Chromium instance and a webapp for everything. What happened to all of my RAM? Who cares, everything is free now, numbers are a lie.
I mean the entire point of frontend frameworks was supposed to be that it would simply be faster to transport JSON diffs rather than entire html pages, and do the rendering in the browser. But of course any such efficiencies wound up being eaten by increasingly bloated and inefficient code. And now people are discovering backend rendering and "vanilla" JS like Howard Carter discovering the tomb of King Tut.
Javascript the language, even Javascript the idea (being able to write and run code on the web) is at worst neutral, and arguably a good idea. At least from the point of view of the old hacker ethos where the point is to liberate the masses from the gatekeepers of intellect and information is as many ways as possible. But as with everything else turning to shit in our world, blame capitalism for taking something with the potential for good, and utterly ruining it.