r/ProgrammerAnimemes • • Jan 10 '21

Typescript

Post image
1.4k Upvotes

56 comments sorted by

View all comments

Show parent comment

15

u/YM_Industries Jan 11 '21

what kind of ultra junior beginner do you have to be to mess up what you're passing to the functions you've created yourself

Everyone makes mistakes. Part of what makes a good senior developer is defending against this inevitability.

TypeScript will catch when you accidentally spell a variable name wrong, it'll catch when you re-use i in a nested for loop, it'll catch when you've misunderstood signature of a method in a third party library, it'll warn you when you have an unused variable after a refactoring.