News for hackers. Stuff that matters.
Re:Uncle Bob and Silver Bullets (2017) by chrisoverzero on Monday July 04, 2022 @02:01PM (#31980033)
Are you trying to say that “Test-Driven Development” is “writ[ing] tests for their code”?

Test-Driven Development means that the tests are written before the features.

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.
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.

Re:Uncle Bob and Silver Bullets (2017) by jdlshore on Monday July 04, 2022 @04:27PM (#31981412)
Sure, if you insist. I've seen enough people misunderstand TDD to be TTTFFF that I think it's important to clarify.