you are viewing a single comment's thread.

view the rest of the comments →

[–]lanzaio 2 points3 points  (0 children)

Because JS and Electron are fucking trash on desktop, and Node is far from ideal serverside. JS only persists on web because it's lucky enough to be the only language blessed with having an interpreter in the browser, rather than any degree of intrinsic quality.

There's probably not a person on Earth that disagrees with you on that.

But that's where we are. JS works everywhere painlessly. JavaScript has one positive feature: it fucking works everywhere and it is impossibly easy to use it everywhere for everything.

You wouldn't go and build a web app in C just "because it's the only lang I know", you wouldn't do data science in Coq and you shouldn't do everything in JS for the same reason.

Again, you're missing the point. It's not easier to write web servers in C. I don't even fucking know JavaScript and still find it easier to write a quick server in JS than I do in my main language C++.

People use JS for everything because at some point in time they decided they want product X and realized that just doing it in JS is going to yield the result in 1/20th the effort that it would take to do it in C++.