Skip to main content

You have nothing to lose but your bugs

I'm re-reading a book called "Growing Object-Oriented Software, Guided by Tests", written by Steve Freeman and Nat Pryce.

In it, is says this as one of the highlighted pieces of text:

... you have nothing to lose but your bugs

We cannot empathize strongly enough how liberating it is to work on test-driven code that has thorough test coverage. We find that we can concentrate on the task in hand, confident that we're doing the right work and that it's actually quite hard to break the system - as long as we follow the practices.

I definitely agree with this.

It's great to work on a codebase that has a working and thorough test suite.

I can focus on adding a feature or fixing a bug without worrying about breaking the existing functionality.

I can refactor code and know it still works by just running the tests.

If you haven't already, make adding automated tests to your application a priority.

About me

Picture of Oliver

I'm a certified Drupal Triple Expert and former Drupal Association staff member with 18 years of experience, a Drupal core contributor, public speaker, live streamer, and host of the Beyond Blocks podcast.