in reply to Test Driven Development example + design question
I've not found that the approach matters as much as:
- Are you working in small steps?
- Are you verifying your design and implementation with coherent and well-designed tests?
- Are you refactoring rigorously as you discover a natural design for your system?
In general I prefer the bottom-up approach as it requires less scaffolding to build a comprehensive test suite, but neither approach is sufficiently better over the other as to matter, in my experience.