You are previewing Refactoring: Improving the Design of Existing Code.

Refactoring: Improving the Design of Existing Code

Cover of Refactoring: Improving the Design of Existing Code by Don Roberts... Published by Addison-Wesley Professional
O'Reilly logo

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 ...

The best content for your career. Discover unlimited learning on demand for around $1/day.