Unpopular Opinion
Welcome to the Unpopular Opinion community!
How voting works:
Vote the opposite of the norm.
If you agree that the opinion is unpopular give it an arrow up. If it's something that's widely accepted, give it an arrow down.
Guidelines:
Tag your post, if possible (not required)
- If your post is a "General" unpopular opinion, start the subject with [GENERAL].
- If it is a Lemmy-specific unpopular opinion, start it with [LEMMY].
Rules:
1. NO POLITICS
Politics is everywhere. Let's make this about [general] and [lemmy] - specific topics, and keep politics out of it.
2. Be civil.
Disagreements happen, but that doesn’t provide the right to personally attack others. No racism/sexism/bigotry. Please also refrain from gatekeeping others' opinions.
3. No bots, spam or self-promotion.
Only approved bots, which follow the guidelines for bots set by the instance, are allowed.
4. Shitposts and memes are allowed but...
Only until they prove to be a problem. They can and will be removed at moderator discretion.
5. No trolling.
This shouldn't need an explanation. If your post or comment is made just to get a rise with no real value, it will be removed. You do this too often, you will get a vacation to touch grass, away from this community for 1 or more days. Repeat offenses will result in a perma-ban.
6. Defend your opinion
This is a bit of a mix of rules 4 and 5 to help foster higher quality posts. You are expected to defend your unpopular opinion in the post body. We don't expect a whole manifesto (please, no manifestos), but you should at least provide some details as to why you hold the position you do.
Instance-wide rules always apply. https://legal.lemmy.world/tos/
view the rest of the comments

JavaScript should not exist, at all.
I love JS since es6, but I never want to use it in the backend. I always want a typed language, or else python. But I always feel a little happy when I'm coding front-end JS.
It's a pretty core aspect of the web, I think it's necessary, but it was taken too far.
Some kind of scripting language was necessary, I don't think JavaScript had to be it.
First there was C++: bloated, complicated, and not memory safe. So they came up with Java, which was similar in syntax but much less complicated, with great memory safety, and a decent type / object system. It was popular in the day, with a cultish fan base, and was seen as cool. So they (meaning Netscape) wrote something that looked like Java but got rid of half the good features. Nobody thought at the time that JS mattered much, it would be soon replaced by something better.
And that was decades ago. It was never meant to run the web for that long. It did an acceptable job, but it is very frustrating in the long run.
The problem with Java applets was the slow startup time of the VM. JavaScript loaded quickly and executed immediately.
The real dominance of JavaScript started after Flash died. Starting with the iPhone, the booming smartphone didn’t support Flash. Websites needed to migrate away from depending on Browser Plugins. The only option was JavaScript. Microsoft Silverlight, Java Applets, Flash, Shockwave were all Plugins. Mobile Browsers don’t support plugins because of performance, security, and usability issues. Users of all of these platforms switched to JavaScript for lack of a better option. The introduction of electron and other JavaScript powered applications on the desktop is a long term consequence of that transition. The death of the browser plug-in had severe consequences.
JavaScript started out as a cut down Smalltalk clone because the dev thought that Smalltalk was cool. Then they bolted a curly braces syntax onto it and called it JavaScript for marketing reasons.
The big alternative was Microsoft's VBScript, based on Visual Basic and not available on any browser other than Internet Explorer.
We're arguably better off with JS in the browser. Of course server-side JS is a spectacularly bad idea.