Why did this garbage language catch on? Posted on May 23, 2023 by Anonymous Why did this garbage language catch on?
what is the alternative then?
That's R*act, not JS.
React is still JS no matter how you cut it, retard.
It just makes me seethe that there is no simple solution for cross platform for mobile and desktop like Electron. There isn't even an Electron alternative for mobile. I'm not going to use React.
Mobiles shouldn't exist anyways.
or flutter/dart which does what you asked
That's literally just electron from another vendor, retard.
>There isn't even an Electron alternative for mobile
you can make hybrid apps with plain js using cordova or capacitor. It's just like a fancy webview packaged as an app
>Enjoy your coffee sirs.
Machine Learning? I have never seen someone use JS for that. Everyone uses Python (PyTorch, Tensorflow) for that.
I think some enterprise apps/systems use JS for task automation with few ML methods bundled with them
Yeah, they advertise it as ML but they really mean a linear regression at best. Maybe, if they're extra fancy, there was a random forest, but even that's rare. Also the ML isn't "done" in js in this case, it's just loaded up in a js runtime.
True, but that doesn't make any difference for "business analysts" as long as they can tell their managers they've implemented "ML-based solution"
there's a js version of tensorflow. I'm not sure who uses it but I guess a fair few people use it for google to maintain it. Though way more people use python
it runs in the browser though too so I guess if you're making a client side ML app then you pretty much have to use js, or wasm i suppose
Webdev is the entry gateway to programming so people babyduck to JS.
I'm serious: it's because the /ilovescience/ crowd found out that NASA uses it:
this cannot be real, why would they do that?
obviously this is not why JS is so big today lol
“ 3.1. Event-driven Operations
It was revolutionary in the late-90's through early 2000's. It caught on in a very formative time for the internet and has been grandfathered in ever since.
JS, especially modern JS, isn't really that bad of a language in itself but the runtime is absolute dogshit and the zeitgeist around it is a war crime.
>the runtime is absolute dogshit
What do you mean? JS is faster than ever thanks to the runtime.
>module system is a nightmare
>everything is waterfall interpreted
among other issues
you can use workers to run multiple threads. There's workers in node.js too, or clusters
>module system is a nightmare
typescript modules are easy, i'ts just import/export and you don't need to change package.json, but the others aren't so good
>It was revolutionary in the late-90's
No, but it happened to be there in a convenient spot
I still don't understand what the fuck is prototype inheritance useful for.
Not carrying around all useless methods with every object
This reminds me of a use case of dynamic scoping.
This is an implementation thing, I'm looking for programming use case things, but I seriously doubt that there is anything really deep about them. At best, it could be used to implement dynamical scoping and it could be useful with the DOM and nested widgets, it's the only thing that make sense.
methods are shared across multiple instances of a class which saves memory
nothing else was added to web browsers.
Basically its Emergent Phenomena
The language was adequate enough to achieve stuff in the browser BUT loose enough that it didnt scare all the newbies to the internet off by allowing totally dysfunctional constructs yet still keep on running.
It out competed every other solution because it spread the fastest because of the above factors.
If it was too terse and too strict, its uptake would not have happened as it did.
Successful technologies are not necessarily the best technologies. Its irrelevant if something is the best fit. Its more important that its taken up the fastest to outcompete better solutions.
It didn't "catch on", it was forced because it was the only option, then as people started using it, the only recognized option.
It actually makes sense.
The browser and the web were designed with interop at the center.
As a result of this and multiple other factors, the web became the main platform for everything.
the idea of ruthless backwards compat for the web is what allowed it to succeed by mere process of elimination. where each decision made by a language alienates developers further each time, the fact that you could write something and expect it to work 10 years later means you not only have the developers and products made today, but also the ones made 10 years ago.
this has a huge leverage on its market share because it serves as the foundational userbase that allows it to more easily reach (and less likely to lose) critical mass. if we had a web 10 or web 11 by now, fagmen would have made their own http alternatives long ago that gave them full control over their "ecosystem".
it’s literally a phase. i’ve outgrown it now. i’m doing java, a real programming language, like an adult
good morning sir
good morning sir
i heart java
because it is the language that is dominating the situation sir isn't it
Low point of entry is the reason why JS, Python and PHP dominate programming language landscape
It's just like how C became popular: right place, right time
Return to tradition.
Embrace ActionScript 2.0.
right place at the right time, it was the only universal way to make web sites do dynamic things, and the web took off massively
laziness and powerful hardware let it spill over to non-web areas
Web Assembly will theoretically fix this over time. But now we have a whole new problem of needing to sandbox websites, and endless vulnerabilities popping up because browsers are now virtual machines that spontaneously run arbitrary code from any page they load. It's ridiculous that web developers abandoned the old best practice of having a website work without JS. even LULZ requires JS, mostly only because it reduces server load with client side rendering
JS is fine when used as intended, like LULZ's use is perfectly fine
the issue is that the fact you /can/ make whole-ass applications out of it, people did
Unfortunately, it's being used for evil.
for c, you need iq. for python, you need a good laptop/pc. JS can run on weakest & cheapest pc third worlders can afford.
Js isn't lighter than python
Internet Explorer started shipping its own garbage version of it.