3 ms·
Unit tests may be overrated, but writing them certainly isn't. I've seen so many programmers start writing so much better code after adding the criterium "it h
by rickmb 16y ago
Unit tests may be overrated, but writing them certainly isn't.
I've seen so many programmers start writing so much better code after adding the criterium "it has to be testable".
BTW, the killer bugs are usually not in the "complicated routine". They are more often in the simple things programmers like to think they can do so perfectly that they don't need to write tests for it. I have found many a bug in the most simple one line functions I never bothered to test.