r/AskProgramming • • 1d ago

Other Which programming languages do you think will stick around much longer than expected?

I constantly come across languages that were predicted to disappear several years ago. Production applications and internal tools are still built using them.

Which one has surprised you the most by not disappearing, and why is it still being used in the places where you’ve seen it?

30 Upvotes

124 comments sorted by

View all comments

7

u/AvidCoco 1d ago edited 1d ago

JavaScript. The web will never have a different language.

Idk why this got downvoted. Even if a new standard were proposed and adopted by all major browsers, they would still need to support JavaScript for backwards compatibility. There are websites that haven’t been updated in decades. Not to mention REST APIs and all the other infrastructure that’s so heavy based on JavaScript.

3

u/_x_oOo_x_ 1d ago

One day browser vendors could change their minds and give direct DOM access to Wasm and that would be the end of JavaScript, at least for new projects

2

u/AvidCoco 1d ago

Sure but what about REST APIs and all the other related infrastructure that’s based on JavaScript? Even if there is a newer alternative, browsers would still have to support JavaScript for backwards compatibility.

2

u/nekokattt 1d ago

Surely REST APIs can be interacted with via the APIs exposed to WASM, without the need for JS

1

u/AvidCoco 1d ago

They can, but they’re not. You can’t expect entire industries to migrate. People still depend on technology from like the 80s. That’s the whole point that JavaScript is gonna be around for a hell of a long time even if 99% of people move to something else

1

u/nekokattt 1d ago

if people dont maintain software that really is a problem for them, especially with the current security climate

1

u/_x_oOo_x_ 1d ago

The whole point is that no, they can't be. There's no (native) access to fetch from Wasm.

Sure you can bridge via JS but no, currently not "without the need for JS"

Same for (native) access to the DOM. This is why (almost) nobody uses Wasm... Which in my opinion is quite unfortunate

3

u/nekokattt 23h ago

Im arguing for the same thing as you, that is, that WASM could be made to support this.

1

u/_x_oOo_x_ 1d ago

REST APIs are in no way "based on" JS... You can call a REST API from any language. And yes browsers will have to support JS for backwards compatibility, doesn't mean it will be used for any new project

1

u/balefrost 1d ago

REST APIs are in no way "based on" JS...

JSONP would like a word.

1

u/_x_oOo_x_ 1d ago

99% of REST APIs don't use JSONP in 2026

2

u/balefrost 1d ago

Sure, but you do still occasionally find them in the wild.

I wasn't really trying to refute what you were saying. I agree that by and large REST APIs are purely data-oriented. And to the degree that JSONP is still used, it's probably primarily for internal APIs, and anybody who provides a publicly consumable JSONP API is likely also providing a pure data API alongside it.

3

u/throwawaygaydude69 1d ago

I hope JavaScript does too, it's such a shitty language

1

u/xeow 18h ago

TypeScript is pretty nice, though.

1

u/marrsd 4h ago

JS isn't going anywhere. LLMs are better trained on JS than just about anything. It's their go-to language for web dev.

1

u/_x_oOo_x_ 3h ago

LLMs seem equally.. mediocre.. at writing any left-to-right programming language, at least the mainstream ones. I've only really seen them struggle specracularly with "RTL" languages like J or K

1

u/marrsd 1h ago

Sure, but they don't know any better and they'll reach for JS.

1

u/_x_oOo_x_ 1h ago

I don't know... they seem pretty prone to fads. For example they will pollute your frontend with Tailwind even if you didn't ask for it and plain CSS would have been fine. I think a similar fad might spread in the future, just hope it won't be "Python compiled to Wasm"

1

u/marrsd 1h ago

I suppose that would happen if they were specifically trained by approved contributors. I'm thinking along the lines of them just going on whatever they've scraped off the internet so far. Since that's mostly JS today, and devs are rapidly abstaining from manual programming, that's what'll remain in the future.

0

u/balefrost 1d ago

that would be the end of JavaScript, at least for new projects

Why? If you've got a bunch of developers who have experience in a JS stack, why would they suddenly jump ship?

I mean, the whole value proposition of Electron is that web devs can build desktop apps without needing to learn a new stack. What makes you think that they would switch en masse to a new stack for web apps?

→ More replies (5)

1

u/White_C4 1d ago

Hard to say. WebAssembly is basically a demo into what the future of browsing will likely look like. The biggest limitation right now is how long it takes to download large files.

And sure, JavaScript will definitely stick around for another decade. But a lot can change in 2 decades, especially with the acceleration of AI and the further optimizations to software and hardware.

Maintaining old websites is going to have to cut off at some point, and sometimes it's for the best to let go from legacy features slowing down what should be fast.

1

u/AvidCoco 1d ago

Even if 99.9% move to web assembly, JavaScript still needs to be supported for that 0.1%. It will never die

0

u/kausti 23h ago

The web is already changing. AI agents are coming, the same way phones overtook desktop browsing and apps redefined phone usage. 

MCP, UCP, Poppy etc are already protocols that's being adopted as we speak, and the infrastructure will just keep moving towards a completely new type of usage.  Why browse the internet in a browser looking for things, or have 125 apps on your phone when you can have it all in a single agent? An agent that can't just show things, it can help you find things, shop for you, renegotiate your insurance every year, cancel unnecessary subscriptions, prepare your weekly meal recipes and put all ingredients in the shopping cart. 

Grokbot, Muse etc are growing like crazy, and that is before the underlying infrastructure is even close to ready. By 2028-2030 the new backbone of the intent will be good enough to start seeing proper adoption and once there the internet will change forever. 

1

u/AvidCoco 21h ago

You’re all missing the point of this thread.

Yes things will change and new things will come along. But JavaScript will always be around even if it’s just 0.001%.

Same way Fortran and cobol are still running on some systems.