News for hackers. Stuff that matters.
Re:Ask HN: Do you write tests before the implementation? by hackerm0nkey on Friday November 15, 2019 @10:16AM (#21545462)
TDD is also a design tool. I agree for newly written code, yes.

Writing a test before fixing a bug reveals the bug and solidify a proof that the fix addresses it adequately. So in this context, it's less about the design (since it's already there) and more about fixing and proving that the fix works.

There are no comments on this comment yet.