Some solutions are good enough

Once you have a passing test and you're confident your code works as expected, what do you do next?

Do you keep refactoring and changing it, or is it good enough?

Do you need to extract additional classes and methods now, or as the test is passing, do you move on to the next task?

The main objective is to ship the change and for it to provide value to users, not to have a perfect or "gold-plated" solution.

Once it's shipped, because you have tests, you can confidently refactor it in the future.

- Oliver

Was this interesting?

Sign up here and get more like this delivered straight to your inbox every day.

About me

Picture of Oliver

I'm an Acquia-certified Drupal Triple Expert with 17 years of experience, an open-source software maintainer and Drupal core contributor, public speaker, live streamer, and host of the Beyond Blocks podcast.