The Bike Shed cover image

381: To TDD or Not to TDD?

The Bike Shed

00:00

The Importance of Test-Driven Development

The decision to TDD is very dependent on whether you are writing net new code or refactoring. I feel like I often don't trust the code enough where I'm a little bit scared to do a refactor if there isn't test coverage. Do you ever find the code that you write in a test-driven approach tends to end up different than code that you might write with a test after approach? Yeah. That definitely makes a difference. For me, when I'm refactoring in the purest sense, changing structure without changing behavior,. In theory, I should not be writing tests for that because there should already be existing tests. And I'm not changing behavior, so

Play episode from 15:59
Transcript

The AI-powered Podcast Player

Save insights by tapping your headphones, chat with episodes, discover the best highlights - and more!
App store bannerPlay store banner
Get the app