DEV Community

Cover image for DISCUSS: JavaScript just DIED! What language should replace it?
Thalita G.
Thalita G.

Posted on • Edited on

DISCUSS: JavaScript just DIED! What language should replace it?

People usually have a love-hate relationship with JavaScript. It's got its beauty and its unavoidable quirks. We're all familiar with them. We can't deny that it's been an absolute powerhouse for the web, though.

You'll always find Js in the top 10 or even top 5 lists of most popular programming languages. It's also the #1 topic on dev.to!

But what if all of that suddenly went, like, POOF! ๐Ÿ‘ป

Now now, where's this coming from?

First of all, special thanks to @technoglot for the inspiration!

Her article asked this simple question: What would your tech stack look like if JavaScript didn't exist?

I'm a webdeveloper through and through. Naturally, I'd start unpacking all CSS-only solutions! However, I started thinking more about the implications of JavaScript's death, like...

โœ Comment below answering the following question

If JavaScript stopped existing, what language do you think should replace it?

Now, I understand that some programming languages aren't quite ready for things like DOM manipulation and such. Imagine these things would be implemented into said languages.

Or perhaps you have a better version of JavaScript in mind? ๐Ÿ˜ฎโ˜ Let me know!


Thalita logo

Twitter | Website

Latest comments (92)

Collapse
 
pontakornth profile image
Pontakorn Paesaeng

First, I assume that the browsers will eventually understand the replacements. If the JavaScript somehow dies, I think there are lots of candidate that can fill this role. I will talk about the languages that can fill JavaScript role if it die.

  1. TypeScript
    Instead of compiling into JavaScript, it becomes a complete language. There will be no more wtf with JavaScript because if it's going to replace JavaScript, it will need to come up with their own power. The new TypeScript will eventually remove all of JavaScript weirdness.

  2. Python
    Because it is a simple language just like JavaScript. Python can model DOM as well as JavaScript and it can become even better. Python is more consistent that JavaScript so it will make development easier.

  3. Dart
    There are already a way to write React and Angular app in Dart now. If the browser can understand Dart just like JavaScript in this day, it can become the main language of writing web application. The downside is the syntax can be ugly. You can see it clearer if you try to develop something in Flutter.

Collapse
 
shaijut profile image
Shaiju T • Edited

I think there should be one Programming language for both Front End and Backend.

This will help us by spending time in building products instead of learning all the new frameworks.

Microsoft has the answer by introducing Blazor

Blazor : Build client web apps with C#

Check out Blazor: dotnet.microsoft.com/apps/aspnet/w...

Collapse
 
alanmynah profile image
alanmynah • Edited

oh god, please, no. Yeah, sure, JS has quirky bits, etc. But if I ever have to sit in another meeting about dependency injection or watch another talk factory factories, i will sign up to trades courses to become a certified electrician, a plumber or a plasterer.

Thread Thread
 
alanmynah profile image
alanmynah

There are people who love this MS lingo of ClaimsPrincipals, or figuring out if a particular interface needs to be added to a service collection as a singleton (or maybe it's transient. Nah, must be scoped), but it ain't me.

Collapse
 
pixelagil profile image
Alejandro Vivas

pffff

 
rangercoder99 profile image
RangerCoder99

But would other none M$ Browsers want it?! Also what about none Chromium browsers like the MacOS one that Apple feels protect their users better, how long till Apple will try to kill other browsers for security reasons the same way they killed Flash?

Collapse
 
oniichan profile image
yoquiale

PHP

Collapse
 
arepodesir profile image
Arepo Desir

Did everyone forget Lua? That was a nice thing, a certain grown-up site still uses Lua for its extern resource calls I heard.

Collapse
 
thalitadev profile image
Thalita G.

I think everyone seems to be focusing so much on what they love in the backend and in there there are a ton of options. A few commenters went for Lua too and I think it makes a lot of sense when focusing on the frontend.

Collapse
 
arepodesir profile image
Arepo Desir

You guys are all in denial, we need to start using Clojurescript. Everything's going functional anyway, why not abstract away the syntax?

Collapse
 
felipperegazio profile image
Felippe Regazio

Rust :D

Collapse
 
mikee profile image
Miguel Palacios

Well if JS is dead TS is also dead.... so PHP has always been there, but another alternatives could be Dart/Go or C#... or any other with WASM

Collapse
 
stajilov profile image
Vladimir Stajilov

Itโ€™s time to deconstruct JavaScript