4 ms·
People typically write small, short scripts in bash, not web applications. The same goes for JavaScript, but in reverse. They were designed for different things
by saagarjha 6y ago
People typically write small, short scripts in bash, not web applications. The same goes for JavaScript, but in reverse. They were designed for different things.
- PrinceKropotkin 6y agoThere's nothing about javascript that makes it particularly suited for "web applications". This doesn't seem any more ridiculous than, say, using python or perl.
- saagarjha 6y agoPython and Perl don't run natively in the three major browser engines.
- PrinceKropotkin 6y agoSure, but that doesn't speak to the language.
- barumi 6y agoBeing event-driven and simple and hot reloadable and forgiving does make it well suited for the task at hand. You should really think about why javascript is the de facto standard for web scripting. Other alternatives have appeared but even the likes of Google, which control the entire web stack and can pretty much dictate what the world uses, decided against it.
- PrinceKropotkin 6y agoIt's the de-facto standard for web scripting because browsers forgot to build anything other than the bare minimum to ship new features incrementally. There's nothing about the languge itself that is preternaturally suited to the task at hand; in fact I'd argue it's the largest single impediment to scripting the browser outside of political sources (e.g. browser vendors).