“Norvig: I see tests more as a way of correcting errors rather than as a way of design. This extreme approach of saying, “Well, the first thing you do is write a test that says I get the right answer at the end,” and then you run it and see that it fails, and then you say, “What do I need next?”—that doesn't seem like the right way to design something to me. It seems like only if it was so simple that the solution was preordained would that make sense. I think you have to think about it first. You have to say, “What are the pieces? How can I write tests for pieces until I know what some of them are?” And then, once you've done that, then it is good discipline to have tests for each of those pieces and to understand well how they interact with each other and the boundary cases and so on. Those should all have tests. But I don't think you drive the whole design by saying, “This test has failed.”
―
Coders at Work: Reflections on the Craft of Programming
Share this quote:
Friends Who Liked This Quote
To see what your friends thought of this quote, please sign up!
0 likes
All Members Who Liked This Quote
None yet!
This Quote Is From

5,347 ratings, average rating, 284 reviews
Open Preview
Browse By Tag
- love (100957)
- life (78984)
- inspirational (75539)
- humor (44228)
- philosophy (30813)
- inspirational-quotes (28702)
- god (26815)
- truth (24632)
- wisdom (24453)
- romance (24283)
- poetry (23112)
- life-lessons (22504)
- quotes (20908)
- death (20490)
- happiness (18908)
- hope (18455)
- faith (18289)
- inspiration (17223)
- travel (16859)
- spirituality (15637)
- relationships (15431)
- religion (15362)
- motivational (15239)
- life-quotes (15205)
- love-quotes (15043)
- writing (14906)
- success (14151)
- motivation (13097)
- time (12807)
- science (12055)