Re:Uncle Bob and Silver Bullets (2017)
by jdlshore on Monday July 04, 2022 @03:40PM
(#31980939)
That's a common misunderstanding, but it's not true. TDD involves writing the tests at the same time as the code in tiny little steps. Write a few lines of test code that fail --> write a few lines of production code to make it pass --> refactor if needed to clean things up --> repeat.
[ Parent
| on HN ]
Re:Uncle Bob and Silver Bullets (2017)
by chrisoverzero on Monday July 04, 2022 @04:04PM
(#31981195)
> Write a few lines of test code that fail
OK, write the test…
> write a few lines of production code to make it pass
…before the feature.
I recognize the color you’re trying to add (it’s more like TFTFTF than TTTFFF), but it remains Test-Driven Development.