Refactoring Techniques
We’re now getting into the meat of the subject: how to do refactoring. It would be a bit silly to think we can cram all the refactoring techniques ever known into one chapter. So, we’ve decided to focus on the most common and more interesting ones. Our main source of wisdom comes from Martin Fowler’s fantastic work in his book, Refactoring: Improving the Design of Existing Code. He teamed up with Kent Beck to explain, step by step, how to do refactoring, from the simplest to the trickiest cases. For each one, they provide a kind of how-to guide so that you won’t mess things up. Here, we’re offering a selection of the most important refactoring techniques, an importance that we consider based largely on our own experience.
Tip
For those who don’t know, Martin Fowler and Kent Beck are influential figures in software development. Martin Fowler is known for his contributions to software design, refactoring, and agile...