3 ms·
Unit testing written first actually forces you to throw away bad code more often. The test is independent from the production code.
by felipe 18y ago
Unit testing written first actually forces you to throw away bad code more often. The test is independent from the production code.
- einarvollset 18y agoNot exactly: It forces you to throw away bad code inside a component _that conforms to the unit test_. If the unit test inherently tests something that isn't optimal for the larger problem then you're no further.