Hacker News new | ask | show | jobs
by DonaldFisk 3791 days ago
Strongly typed languages, and unit testing, do prevent or detect many kinds of bugs less expensively than the alternatives. That is why they're worth using.

Similarly, not all diseases are prevented by vaccination, but that's not considered a good argument to stop vaccinating people against those diseases that are prevented by vaccination.

1 comments

I agree with you, but you're being argumentative. No one here is saying that we should stop unit tests because they can't find all the bugs.

Instead, the focus should be on what else we can do to improve the bug detection rate. This is an area that needs further research (and I would start with the observation that the quality of the unit test varies dramatically depending on who writes them).

The debate on dynamic vs strong is more important than testing vs no testing.
Why? Explain yourself.