Write the whole thing, and only then, scrap it and rewrite it.
Exactly. And that’s the part a lot of folks don’t understand about writing tests. If we’re not sure an interface will survive into the rewrite, it probably doesn’t belong in the test suite.
And the rewrite can be very fast, if we tested the right things.
Exactly. And that’s the part a lot of folks don’t understand about writing tests. If we’re not sure an interface will survive into the rewrite, it probably doesn’t belong in the test suite.
And the rewrite can be very fast, if we tested the right things.