The Bike Shed cover image

381: To TDD or Not to TDD?

The Bike Shed

00:00

How to Practice TDD

If I'm given a user story, I usually try to work outside in so I will write a feature or acceptance test and that involves testing how the user would interact with their application. At that point, I will usually go with the most naive implementation to get the test passing. And then at that point is when I gave that code a second pass and looked for areas to extract where I could. That refactor step in the red-green refactor cycle is really important.

Play episode from 18:18
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