3 ms·
> TDD is a bit like waterfall, in the sense that you're assuming you know what the code needs to do before you write it Very true; but there are cases where yo
by BenoitP 10y ago
> TDD is a bit like waterfall, in the sense that you're assuming you know what the code needs to do before you write it
Very true; but there are cases where you actually have that knowledge. If you are asked to port some application to another framework or language, and have tests, I'd highly recommend you use them.
I have been refactoring an ETL pipeline (to offer extensible, more flexible behavior) that sort of grew out of interns applying ad hoc transient business rules. No tests were present but I had a quite large coverage over past inputs that were yielding a correct output. I'd say code size shrank about 70%.
- mangeletti 10y ago> ... and have tests, I'd highly recommend you use them... Absolutely, but that's not TDD. The old tests (presumably) were written as regression tests, and code changes must comply to the (hence) regression tests' expectations. That's perfectly reasonable, and I think that's most tested software projects operate.