Test & Code cover image

Test & Code

210: TDD - Refactor while green

Nov 30, 2023
The podcast explores the necessity of the refactor step in Test Driven Development, including when to refactor and whether tests should be included. They discuss adding a 'done' feature to a command line application, the process of refactoring while writing tests, and the importance of writing first drafts and committing code frequently.
15:43

Podcast summary created with Snipd AI

Quick takeaways

  • The refactor step in test-driven development (TDD) is important as it helps improve code quality and maintainability by making necessary changes and optimizations.
  • Debugging and fixing new tests first, limiting the scope to newly modified code, is a best practice for refactoring in TDD.

Deep dives

The Importance of Refactoring in Test-Driven Development

In this podcast episode, the speaker discusses the significance of refactoring in test-driven development (TDD). They address common questions related to the refactor step, such as whether it includes tests and if tests can be refactored at any time. The episode also highlights the benefits of doing the refactor at the end and provides examples to illustrate the TDD workflow.

Get the Snipd
podcast app

Unlock the knowledge in podcasts with the podcast player of the future.
App store bannerPlay store banner

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode

Save any
moment

Hear something you like? Tap your headphones to save it with AI-generated key takeaways

Share
& Export

Send highlights to Twitter, WhatsApp or export them to Notion, Readwise & more

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode