2 ms·
> If you suck at writing code, then TDD should help you determine whether your sucky code produces the correct output for a given input Well, if you suck at wr
by falcolas 9y ago
> If you suck at writing code, then TDD should help you determine whether your sucky code produces the correct output for a given input
Well, if you suck at writing code, what guarantees do you have that the tests (which are also code you write) are even correct?
- deleted 9y ago[deleted]
- AnimalMuppet 9y agoYou don't have any such guarantees. But your test would have to be broken in the same way that your real code is broken, not in some different way.
- falcolas 9y agoWell, if the test is accidentally testing the wrong input/output pairs, your code can pass the test perfectly and still be broken. Especially if you follow the "build to the test" mantra.