r/javascript • • Oct 01 '26

The JavaScript midlife crisis

https://maroun-baydoun.com/blog/javascript-midlife-crisis/

Thirty years in, the JavaScript ecosystem would like to see other languages. They're younger, leaner and faster. What could possibly go wrong?

0 Upvotes

18 comments sorted by

View all comments

Show parent comment

1

u/Ronin-s_Spirit Oct 01 '26

If you have to layer 2 big "fixes" on top of eachother I say you're just tiptoeing around the problem. You can't really fix this language designed thusly, you need to work with it not against it.

3

u/BenZed Oct 01 '26

Yes, that is another way of saying "I have no idea what I'm talking about."

1

u/azhder Oct 01 '26

Rule 1: remember the human. You said that already. Move on. Don't harass people because of difference of opinions. You are not talking about JavaScript, you are talking about a person.

I will mute replies now. Bye

-4

u/BenZed Oct 01 '26

I’m not harassing anyone, nor am I giving an opinion .

I’m informing someone of the fact that they are speaking without competency.

It is difficult to imagine someone being so shaken by this exchange that they make an appeal to humanity over it and refuse to engage further, but here we are!

1

u/peterlinddk Oct 01 '26

My goodness you sound idiotic!

A fact that you'll undoubtedly appreciate being informed of.

1

u/theScottyJam Oct 02 '26

For a more serious answer, they serve two distinct purposes. I recently used zod to help validate the shape of JSON config files so I can report errors to the admin if they configured it wrong. I've also considered using it to validate the API responses of services we depend on provided by other teams in the company - if they make a breaking change, we'd know quicker what went wrong.

Both of these use cases are unrelated to JavaScript's lack of type safety. Even if I had used something like Rust, I might still want runtime validation of those config files and API responses.

TypeScript is for stuff you can validate through static analysis and Zod is for stuff you want to validate at runtime.