Hacker News new | ask | show | jobs
by kevinskii 1589 days ago
No matter how carefully and thoroughly we design a system up front, we almost discover more elegant solutions once we start writing the actual code. I suspect this is true for nearly all non-trivial systems. If we were to fully implement every unit test up front we would usually end up wasting a lot of time.
1 comments

What you describe is not TDD.
no, i took this as a good argument about why writing tests up front is really poor idea if you're exploring the space to find out what a good api might look like.
I think the person you're replying to is saying that "fully implement every unit test up front" does not describe TDD. With TDD you continuously alternate between writing tests and writing production code. It's not like you write a whole test suite up front.
Yes this was my point.
Everything can be improved. At what point do you stop? Scope creep and gold-plating ...