Chapter 2. Principles in Refactoring
The preceding example should have given you a good feel for what refactoring is all about. Now it’s time to step back and look at the key principles of refactoring and at some of the issues you need to think about in using refactoring.
Defining Refactoring
I’m always a little leery of definitions because everyone has his or her own, but when you write a book you get to choose your own definitions. In this case I’m basing my definitions on the work done by Ralph Johnson’s group and assorted associates.
The first thing to say about this is that the word Refactoring has two definitions depending on context. You might find this annoying (I certainly do), but it serves as yet another example of the realities of ...
Get Refactoring: Improving the Design of Existing Code 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.