Breaking Through That First TDD Block - The Code Whisperer

August 12, 2021 Not Just Coding, The Little Things

I literally did this for one afternoon (back in 1999, I think) and began to feel the difference almost immediately. I also happened to like that feeling, even though there were moments where it felt strange: think, think, think, give up, write the production, code, I see…, write the test, run it, see it pass, Hmm…, undo all of it, count to 10 (no, really!), now write the test…. I practised this for a few weeks (my manager seemed not to notice any drop in my productivity!) and the block that Kent describes in his tweet was mostly gone. This helped me build the habit of writing the test first.


This is a companion discussion topic for the original entry at https://blog.thecodewhisperer.com/permalink/breaking-through-that-first-tdd-block