r/ProgrammerHumor • • Sep 25 '26

Meme iHatedItUntilITriedIt

Post image
10k Upvotes

540 comments sorted by

View all comments

Show parent comment

33

u/Merry-Lane Sep 25 '26

Totally, which is why Typescript didn’t overtake 90% of the JS projects in the 5 first years of its existence…

Oh, wait…

5

u/eightslipsandagully Sep 25 '26

JS is a special beast

-11

u/Old-Attention-3936 Sep 25 '26

That's because js variables can be dumb if you do dumb things with them. As someone who uses js and python daily this really isn't a huge issue

4

u/-Redstoneboi- Sep 25 '26

how many people do you work with in your projects and how large are they

2

u/Old-Attention-3936 Sep 25 '26

Enterprise teams of around 10 to 50 people per application with dozens of applications interacting with each other with shared and separate code bases

1

u/-Redstoneboi- Sep 25 '26

alright, that works for your teams then

still, i personally benefit a lot from types when learning a new library and reading documentation. makes it easier for us.

1

u/Old-Attention-3936 Sep 25 '26

I definitely don't disagree with that. Rigorous standards have to be kept for it not to be an issue. Thats always top down from management that have to prioritize them

0

u/UgoRukh Sep 25 '26

That's smol

4

u/Merry-Lane Sep 25 '26

Let’s make an experimentation.

You go on twitch/discord/… whatever.

You turn-on screensharing with vscode on an halfly large JS project you work on entreprise-wise. Something in prod.

Don’t even show us the code, no. Just turn on typescript with a strict config (and maybe a few eslint rules, but… later).

Then we’ll see your project have tons of errors showing up everywhere. Tons of null/undefined/… incompatibilities.

We’ll see you handwave "it’s just false positives guys" or something like that. It’s okay.

It’s okay because we’ll ask you to show us your telemetry collection of your frontend in prod (with more than 10 users a day obviously). That would be filled with a myriad of runtime exceptions, since, you know, "you just gotta be careful about your variables" only gets you so far.

"We don’t have telemetry on the frontend", you’ll tell us. It’s okay.

Again, it’s okay, because we’ll just ask you to demo your website, in a dev or prod setting, whatever, as long as it’s not mocked data, but with the console open. And the console will be orange and red, because, again, "you just gotta be careful about your variables" isn’t that simple in complex applications.

Do that or shut up, I guess.

-1

u/Old-Attention-3936 Sep 25 '26

No, thats incredibly stupid to do

2

u/Merry-Lane Sep 25 '26

Yes, showing to the world the proof you have Dunning-Kruger is stupid.

1

u/Old-Attention-3936 Sep 25 '26

Showing anything enterprise to win an internet meme comment is stupid

1

u/Izacundo1 Sep 25 '26

It’s much more of an issue if you have a large codebase in a large organization. Without typehints and with tons of custom types, it can become a nightmare trying to fix someone else’s bugs or your own when you’re trying to add a feature