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
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.
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
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…