News for hackers. Stuff that matters.
Re:TDD did not live up to expectations by julian_1 on Thursday June 29, 2017 @08:01PM (#14667782)
Do you write the tests first - before the code - and while still exploring the domain? That's the guiding principle of TDD.

Writing tests after the code has been written - to lock down behavior, quickly identify breakage, and support refactoring is a valuable process. But it's not the original vision of what constitutes test-driven development.

Re:TDD did not live up to expectations by collyw on Friday June 30, 2017 @05:01AM (#14669453)
Whenever I write tests first, they usually fail. I need to do some iterations of the test code as the "real" code until they work. Is there some reason why test code is expected to work first time, yet we need a ton of tests to verify that the "real" code works?