Static typing will not save us from broken software
I spent 10 hours yesterday refactoring and adding features to a client side enterprise application that is well over 20k lines of TypeScript over tons of files.<p>Yesterday was a pretty productive day for me. TypeScript easily caught hundreds of little errors as I coded and refactored which I fixed just a quickly. Most of the time when I tested my changes things just worked.  I thought to myself every time TypeScript found something, &#x27;wow I just avoiding another runtime error, thanks&#x27;<p>Maybe people don&#x27;t write or maintain client side software at scale. I don&#x27;t know. But there&#x27;s so little cost to having static typing I don&#x27;t know why you wouldn&#x27;t want it.  I am easily an order of magnitude more productive with it.  I code faster, my code works first time around more often, other people can understand my code easier, and my tests don&#x27;t have to worry about validating types so they can be more logic oriented.<p>There is zero chance anyone would of been able to be as productive as I was yesterday if that code base was dynamically typed.  Not even close.