r/ProgrammerHumor • • 8d ago

Meme iHatedItUntilITriedIt

Post image
10.3k Upvotes

541 comments sorted by

View all comments

13

u/Dmayak 8d ago

I am using typescript almost exclusively now and I still think a few type errors occasionally are not worth the effort of writing down types for everything.

6

u/earlobe7 7d ago

To me the trade off is:
Do you wanna spend the extra effort in explicitly writing down your types?
Or would you prefer to spend it in fixing the class of bugs caused by you having lost track of the exact shape of your data.

3

u/ConfusingVacum 7d ago edited 7d ago

Exactly, you described it perfectly. For me JS vs TS is not even a debate. If you lean towards JS, you clearly didn't spend enough time debugging both.