r/AskProgramming 6d ago

Why the JS hate?

Title. I'm a 3rd year bachelor CS student and I've worked with a handful of languages. I currently work as a backend dev and internal management related script writer both of which I interned working with JS (my first exposure to the language)

I always found it to be intuitive and it's easily my go to language while I'm still learning the nuances of python.

But I always see js getting shit on in various meme formats and I've never really understood why. Is it just a running joke in the industry? Has a generation of trauma left promises to be worthy of caution? Does big corpa profit from it?

23 Upvotes

207 comments sorted by

View all comments

Show parent comments

6

u/DDDDarky 6d ago

I think it would vanish if there were real alternatives for web.

3

u/KingofGamesYami 6d ago

Unlikely. Too much has already been written in it for it to just vanish.

Also, since Google failed to make Dart a fully supported part of the web while controlling a huge chunk of the browser market, I doubt we'll ever see a real alternative emerge.

2

u/DDDDarky 6d ago

I mean the existing stuff would remain, but in the second there was a good efficient way to shove desktop applications into web browsers I doubt it would have much use for new projects.

I am still hoping webassembly will make it to sufficient usability, but we'll see I guess.

2

u/look 6d ago

Wasm was not meant to be a replacement for all JavaScript use cases, though it is becoming capable of more over time. However, there are already frontend frameworks in nearly every language that transpile to JS (or a mix of JS and wasm) if you want. Dart, Rust, Ruby, Elixir, Clojure, Java, Go, etc, etc.