Re:Is TDD Worth It?
by seanmcdirmid on Saturday September 28, 2013 @12:28PM
(#6462220)
> I was taught that you should solve the problem first, and then write the code
It is sad that in this day and age waterfall is still taught as a serious methodology.
Of course, as you delve deeper into the problem, you often learn something that changes your understanding of the problem. That's where the third step of TDD comes in - refactor. TDD doesn't make people reluctant to refactor their code; it forces them to do it. Refactoring is a vital part of TDD.