Is refactoring waste?

Is refactoring waste?

Interesting article on refactoring being waste.

Have a read. THis is my follow up:

When we’re practising TDD with katas, a common practise when following the Red, Green Refactor, is at the green stage. We ask ourselves, how can we get to green with the simplest, least effort change. Maybe a line or so. If it’s too big a change it means we need to comment out that test and refactor ourselves into a position where it’s easy to make that change and get our new test to pass.

Following this logic, our refactoring becomes more focussed, almost using triangulation as our motivation. We also have an end goal in sight or “when to stop”.

THought provoking article, and one I shall be exploring tonight at Manchester Codejo. Maybe the mantra from Red, Green, Refactor needs changing:

  1. Red,
  2. Try to get green in one, simple step,
  3. Comment out red  test,
  4. Green,
  5. Refactor,
  6. Red,
  7. Green


2 thoughts on “Is refactoring waste?

What did you think?

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s