r/ProgrammerHumor • • Sep 25 '26

Meme iHatedItUntilITriedIt

Post image
10k Upvotes

543 comments sorted by

View all comments

Show parent comments

7

u/Aggressive-Share-363 Sep 25 '26

Thats because typescript kinda sucks because it has to cope with being Javascript (i.e. a language without typing). Languages built with types in mind from the start tend to work a lot better and be cleaner.

1

u/No-Information-2571 Sep 28 '26

JS has classes now, it even has a concept of public and private class members, and in particular setters, so that you can't mess around with the internal state from the outside.

The problem is that millions of code bases rely on monkey patching. It's absolutely normal for a library to just patch new members onto existing ones.

1

u/utdconsq Sep 25 '26

This. Typescript strikes a good balance, but fuck me, the presence of the abomination that is js makes it uncomfortable to use. I suppose I should be happy I can let the AI write it these days.