News for hackers. Stuff that matters.
Re:Ask YC: Does anybody enjoy unit testing their code? by felipe on Thursday June 12, 2008 @01:47AM (#215701)
Unit testing written first actually forces you to throw away bad code more often. The test is independent from the production code.
Re:Ask YC: Does anybody enjoy unit testing their code? by einarvollset on Thursday June 12, 2008 @07:14PM (#216384)
Not 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.