by hitchstory · 1y ago · 0 comments
One attacks the problem of bugs from the bottom up and the other from the top down. They both have diminishing returns on investment the closer they get to overlapping on covering the same types of bug.
The haskell bros who think tests dont do anything useful because "a good type system covers all bugs" themselves havent really delivered anything useful.
Please don't do this. It's not constructive.
Throwing away the test means throwing away that user story and the value that comes with it.
Mine is that a lot of potential errors (typos, type mismatches) don't need to be exercised by running code in typed language.
Yours is... well, you don't really address it.
If you're not, that suggests you're not doing them right which in turn suggests why you might have an issue with them...
Maybe you meant to invoke .bar(), but at least we know thanks to type checks that the target exists.