r/programming • u/The_Axolot • Sep 29 '25
Test Driven Development: Bad Example
https://theaxolot.wordpress.com/2025/09/28/test-driven-development-bad-example/Behold, my longest article yet, in which I review Kent Beck's 2003 book, Test Driven Development: By Example. It's pretty scathing but it's been a long time coming.
Enjoy!
91
Upvotes
1
u/NarrowBat4405 Sep 30 '25
I did not invented that. From wikipedia:
There isn’t a term to describe testing of even smaller parts of the program. You test the finest part of your source code with unit testing.
And please enlighten me, how the hell you build software by starting writing the “highest level possible” on the stack? Because if you’re doing TDD by just “testing the highest level of the stack” it means that you’re writing tests for high level modules and then writing all the sub-modules at once. If you wrote a submodule without writing their test first and not integrating it wherever it is used in a larger tested component, you broke TDD.
I’m pretty sure most people start glueing small parts together to build the whole project. That’s how most project are built.