Make Payments Through Refactoring

Refactoring is the practice of continuously making small, incremental design improvements to your software without changing the overall external behavior.

When we refactor our code, we aren’t adding new functionality or even fixing bugs. Instead, we are improving the understandability of our code by making it easier to comprehend and more amenable to change.

We call one of these changes a refactoring.

For example, whenever you rename a poorly named method or variable in an effort to make it easier to read and understand, you’re refactoring.

images/execution/refactoring/simpleRefactorings.jpg

At first glance, refactorings like these may seem small and insignificant. ...

Get The Agile Samurai now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.