this post was submitted on 21 Jul 2025
121 points (86.7% liked)
Technology
73071 readers
2484 users here now
This is a most excellent place for technology news and articles.
Our Rules
- Follow the lemmy.world rules.
- Only tech related news or articles.
- Be excellent to each other!
- Mod approved content bots can post up to 10 articles per day.
- Threads asking for personal tech support may be deleted.
- Politics threads may be removed.
- No memes allowed as posts, OK to post as comments.
- Only approved bots from the list below, this includes using AI responses and summaries. To ask if your bot can be added please contact a mod.
- Check for duplicates before posting, duplicates may be removed
- Accounts 7 days and younger will have their posts automatically removed.
Approved Bots
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Client-side scripting is a hack. HTML didn't have all the tags people wanted or needed, so instead of carefully updating it to include new features, they demanded that browsers just execute arbitrary code on the user's computer, and with that comes security vulnerabilities, excessive bandwidth use and a barrier-to-entry that makes it difficult to develop new browsers, giving one company a near-monopoly.
Wanted, maybe, but needed? It even had marquee, what else could anyone need?
Developers wanted to build and deploy apps to end user machines. The round trip for page loads was lousy for usability.
Java applets were too shitty. Flash was too janky and hard to work with. So Mozilla started adding JavaScript as a hack. It filled a need.
It definitely adds a barrier to entry, but JavaScript was really perfected in chromium, which is a different codebase from the folks who proposed and built js to begin with.
I'm not saying JavaScript is good, but it fills a need.
Totally an accident by the way! They weren't trying to become a monopoly, promise!
Netscape? I don't think it worked out for them, if that was the case :D
I've read it wasn't a hack, but my memory is mixed and I'm as old as JavaScript.
It was somewhat of a consensus that scriptability is needed. Java applets, Flash, Sun plans to add support for scripting webpages with Java, alternative plans for the same with TCL, Netscape plans for the same with some Lisp, and then they decided upon what became JS.
A lot of things are scriptable and it is convenient. I'm not sure anyone expected this to be just used as a base for more and more complexity in an application platform. Probably the idea was that scripted hypertext pages will remain such, and in future there will be other dedicated technologies for other purposes.
I'm fascinated with Java, just can't concentrate on learning it. My idea of a wonder language would run on something like JVM (or like Forth machine, LOL) and be as terse and simple as TCL.