3 ms·
> But as I started implementing a GUI, the tests got harder to write and I didn’t think that the time spent on writing these tests was worthwhile. I agree. TDD
by Walkman 11y ago
> But as I started implementing a GUI, the tests got harder to write and I didn’t think that the time spent on writing these tests was worthwhile.
I agree. TDD has it's places. Testing GUIs is often not one of them.
> You therefore are more reluctant to make large-scale changes that will lead to the failure of lots of tests.
Don't test private APIs. That makes no sense. I find quite the opposite. If I have more tests, I'm more comfortable making bigger changes, because of the safety net the tests give me.
> Think-first rather than test-first is the way to go.
Absolutely agree.
I think the "solution" to the TDD-or-not problem in Kent Beck-Martin Fowler-DHH [0] conversation was that TDD has it's places, sometimes it's really better than other and helps a lot, sometimes it just get's in your way.
[0]: http://martinfowler.com/articles/is-tdd-dead/ http://martinfowler.com/articles/is-tdd-dead/