In this episode of *Dead Code*, J.B. Rainsberger discusses the pitfalls of integrated tests, calling them a "scam" due to their tendency to complicate rather than solve testing problems. He advocates for writing smaller, more focused tests, like unit tests, to simplify debugging and avoid tangled code. J.B. emphasizes that test-driven development (TDD) should be flexible, guiding developers to test based on what they're afraid might break, rather than following rigid rules. He introduces the concept of four stages of TDD, where developers evolve from focusing on bug prevention to refining their approach based on experience, adapting their testing strategy to different contexts while maintaining the core principle of starting with a failing test.
Links:
J.B.'s technical blog: The Code Whisperer
J.B.'s broader development blog: Blog by JBrains
Matteo Vaccari’s article: How I Learned to Love Mock Objects
Growing Object-Oriented Software, Guided by Tests by Steve Freeman and Nat Pryce
Test-Driven Development: By Example by Kent Beck
Dead Code Podcast Links:
Jared’s Links:
Hosted on Acast. See acast.com/privacy for more information.
10/01/24 • 46 min
Generate a badge
Get a badge for your website that links back to this episode
<a href="https://goodpods.com/podcasts/dead-code-543080/fear-driven-development-with-j-b-rainsberger-75337724"> <img src="https://storage.googleapis.com/goodpods-images-bucket/badges/generic-badge-1.svg" alt="listen to fear-driven development (with j. b. rainsberger) on goodpods" style="width: 225px" /> </a>
Copy