2 ms·
Yeah, the title is 100% goofy. It's almost anti-clickbait because some people will (rightfully) dismiss it out of hand. That being said, if you turn on strict
by badlucklottery 7y ago
Yeah, the title is 100% goofy. It's almost anti-clickbait because some people will (rightfully) dismiss it out of hand.
That being said, if you turn on strict everything in typescript and use type guards instead of just casting/asserting around type ambiguity, you avoid that entire class of incorrect typing errors (at the cost of having to really learn the TS type system).
This doesn't reduce your testing load to zero (or even near it) but IME it takes a big chunk out and reduces your "dumb bug" count significantly.