concept refactoring in category legacy software

appears as: Refactoring, refactoring, refactorings, refactorings
Re-Engineering Legacy Software

This is an excerpt from Manning's book Re-Engineering Legacy Software.

Everybody makes mistakes, so it’s always a good idea to have a coworker review the changes you’ve made. Alternatively, you may want to try working in a pair when you refactor. One developer (the “navigator”) can check for mistakes and provide advice while the other developer (the “driver”) focuses on performing the refactoring.

Refactoring is often an exploratory experience in which you don’t know whether a particular solution will work out until you try it. The safety net of the VCS gives you the freedom to experiment with a number of solutions, safe in the knowledge that you can back out whenever you want. In fact, effective use of branches means that you can have a few different solutions on the go at the same time, while you explore the pros and cons of each approach.