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

Oldest comments (92)

Collapse
 
thalitadev profile image
Thalita G.

Here's the post I was talking about @technoglot ! 💃✨✨ Hope you don't mind the lil poke at your own post's title.

Collapse
 
thalitadev profile image
Thalita G.

I look forward to the comments on this one! What on earth could replace JS, if anything? 🤔

My first thought was PHP, which I think is next-level Stockholm Syndrome compared to JS! 🤣 It's giving me physical pain just imagining it.

Collapse
 
ivan_jrmc profile image
Ivan Jeremic

I would create javascript

Collapse
 
thalitadev profile image
Thalita G.

Ha ha, very funny. 🙂

Collapse
 
dastasoft profile image
dastasoft

Maybe nowadays something could be done with Kotlin, I would rather not have to go to a solution from the past like PHP :)

Collapse
 
thalitadev profile image
Thalita G.

I'd take Kotlin anyday over PHP! :) Great choice!

Collapse
 
thalitadev profile image
Thalita G.

I've been quite interested in Rust as well! It definitely sounds like a great candidate to replace JS!

It's true that WASM has gone a long way, but within WASM there are quite a few language options, so I wondered which one people would consider the best choice to take JS's throne. :) Rust definitely sounds like a great one for that!

Collapse
 
vonheikemen profile image
Heiker

crystal would be nice. Looks like a scripting language but it has types. It's cool.

Collapse
 
thalitadev profile image
Thalita G.

Never heard of it before, but it looks very neat! Thanks for sharing. 😄

Collapse
 
moopet profile image
Ben Sinclair

At the moment, based on the agency I currently work for, I'd be using PHP. Why, you ask? Because that's what I do at the moment.

I'll occasionally break out the Javascript if it's needed, and I find it quite fun to be fair, but I wouldn't be particularly heartbroken if it disappeared overnight.

Collapse
 
thalitadev profile image
Thalita G.

A very reasonable answer! PHP is still very relevant nowadays, so it's definitely not too far-fetched that it'd just take over again.

 
moopet profile image
Ben Sinclair

PHP is a dinosaur in the tech space!

Does that matter? The question isn't asking about what you'd use if Javascript fizzled out due to old age, it's a genie-in-a-bottle hypotherical.

I don't particularly like PHP, but it's not going away any time soon...

Thread Thread
 
itwasmattgregg profile image
Matt Gregg

Laravel was the best in teaching me good PHP. PHP was how I got started. Oh the days when you would submit a form to a php handler file that could just send emails directly...

Collapse
 
grahamthedev profile image
GrahamTheDev

I would imagine one of the old school alternatives to JS would have appeared, Flash, WPF / SIlverlight, ActiveX, VBScript.

And if none of them won I am sure we as developers would have come up with workarounds etc.

I mean I created an animation without JavaScript, CSS or images recently, so I am pretty sure we would have adapted somehow as long as we had HTML (or yet again, a close alternative)!

Collapse
 
thalitadev profile image
Thalita G.

Shameless plug, but I take it! :p Your post was absolutely genius and I still think about it! Next up you're gonna make an entire framework that uses no HTML, CSS, or JS or something. 🤣

It's hard for me to imagine the web would revert back to these oldies. There's a good reason why some of them aren't even supported on browsers any longer, haha. But hey, who knows!

Collapse
 
grahamthedev profile image
GrahamTheDev

I mean it was so silly I had to share it. But yeah a bit of a shameless plug I admit!

I am building a website that only developers can use...watch this space for that one 🤣🤣🤣

Collapse
 
dannyengelman profile image
Danny Engelman

But Flash ActionScript was ECMAScript... and JavaScript.. is ECMAScript

Collapse
 
grahamthedev profile image
GrahamTheDev

Well that is fair enough, I mean it is 10+ years since I played with Flash and so my memory obviously didn’t connect the dots!

Thread Thread
 
dannyengelman profile image
Danny Engelman • Edited

Fun fact; ES4 was, partially, implemented in Flash, but JavaScript skipped that version.

the-real-story-behind-es4

Collapse
 
hmida71 profile image
Hmida

how to make a pub like pub games => onclick show pub video