|
|
|
|
|
by westurner
116 days ago
|
|
I don't know why you would run an agent loop without TDD? Should you write code without test coverage? So something must run the tests to be sufficient anyway? > TLDR; Based on Opus's judgment of the quality of the outcomes, there was no clearly discernable difference based on TDD workflow versus no TDD workflow. On the contrary, more than once Opus ranked the non-TDD workflow solutions slightly higher in design and test quality. There was also no meaningful difference in mutation scores across the solutions. That's really surprising.
Was there a difference in cost? Does it matter whether you ask the agent to write the tests first or last? Is one way TDD and the other not? Without property testing or fuzzing or formal methods, could the code metrics in this experiment have been sufficient? Perhaps there's a TDD gauntlet loop that's as justified as tests for QC; https://news.ycombinator.com/item?id=49261545 |
|
Yes. TDD = Test _Driven_ Development, meaning you write the test first, then the implementation.
If you write the test after, that's just called "development" afaik :)
I've only done TDD in very limited cases, like when you're implementing against a known spec. For "regular" work I'm usually still figuring out the shape and code interface for what I'm building, so writing tests first is impractical and wasteful.
Readme-driven-development is more fun: write the readme (ie: the intention) first.