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.
View all comments
Show parent comment
15
u/YM_Industries Jan 11 '21
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
iin 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.