3 ms·
It's good list. Except the TDD rant. TDD can be reframed as codified specifications with test verifications. Then, the TDD purists do have a point.
by cccc4all 6y ago
It's good list. Except the TDD rant.
TDD can be reframed as codified specifications with test verifications. Then, the TDD purists do have a point.
- t-writescode 6y agoThen it’s not (edit: pure) TDD. The TDD purists I’m familiar with think if you write any code before you write the tests, you’re doing it wrong.
- jdlshore 6y agoThat’s a common misunderstanding of TDD, but it’s incorrect. TDD is an incremental cycle of write test, write code, refactor, repeat. Typically less than 5 lines at a time.
- t-writescode 6y agoGiven the order of the words you said, writing tests comes before writing code, as I said.
- jdlshore 6y agoWriting one test comes before writing a few lines of code. It’s iterative. Tests (plural) don’t come before code. They happen at the same time.