Refactoring: Improving the Design of Existing Code (Google eBook)

Front Cover
Addison-Wesley, Mar 9, 2012 - Computers - 455 pages
89 Reviews

As the application of object technology--particularly the Java programming language--has become commonplace, a new problem has emerged to confront the software development community. Significant numbers of poorly designed programs have been created by less-experienced developers, resulting in applications that are inefficient and hard to maintain and extend. Increasingly, software system professionals are discovering just how difficult it is to work with these inherited, "non-optimal" applications. For several years, expert-level object programmers have employed a growing collection of techniques to improve the structural integrity and performance of such existing software programs. Referred to as "refactoring," these practices have remained in the domain of experts because no attempt has been made to transcribe the lore into a form that all developers could use. . .until now. In Refactoring: Improving the Design of Existing Code, renowned object technology mentor Martin Fowler breaks new ground, demystifying these master practices and demonstrating how software practitioners can realize the significant benefits of this new process.

 

With proper training a skilled system designer can take a bad design and rework it into well-designed, robust code. In this book, Martin Fowler shows you where opportunities for refactoring typically can be found, and how to go about reworking a bad design into a good one. Each refactoring step is simple--seemingly too simple to be worth doing. Refactoring may involve moving a field from one class to another, or pulling some code out of a method to turn it into its own method, or even pushing some code up or down a hierarchy. While these individual steps may seem elementary, the cumulative effect of such small changes can radically improve the design. Refactoring is a proven way to prevent software decay.

 

In addition to discussing the various techniques of refactoring, the author provides a detailed catalog of more than seventy proven refactorings with helpful pointers that teach you when to apply them; step-by-step instructions for applying each refactoring; and an example illustrating how the refactoring works. The illustrative examples are written in Java, but the ideas are applicable to any object-oriented programming language.

  

What people are saying - Write a review

User ratings

5 stars
55
4 stars
29
3 stars
5
2 stars
0
1 star
0

Excellent intro to Refactoring. - Goodreads
Great Software/TDD Reference guide. - Goodreads
I am using python extensively in scientific research. - Goodreads
I will continue to reference it for years to come. - Goodreads

Review: Refactoring: Improving the Design of Existing Code

User Review  - Douglas Fenstermacher - Goodreads

The book was very helpful in helping my to think about refactoring code in a more systematic way. Although there are tools that automatically do many of the recommended methods, it is good to now know ... Read full review

Review: Refactoring: Improving the Design of Existing Code

User Review  - Zbyszek Sokolowski - Goodreads

This is classic book, just a little outdated nowadays but mainly due too fact that examples uses Java 2.0. On the other hand I found it very useful. It describes many refactoring methods from very ... Read full review

Contents

Foreword
Preface
Chapter 1 Refactoring a First Example
Chapter 2 Principles in Refactoring
Chapter 3 Bad Smells in Code
Chapter 4 Building Tests
Chapter 5 Toward a Catalog of Refactorings
Chapter 6 Composing Methods
Chapter 10 Making Method Calls Simpler
Chapter 11 Dealing with Generalization
Chapter 12 Big Refactorings
Chapter 13 Refactoring Reuse and Reality
Chapter 14 Refactoring Tools
Chapter 15 Putting It All Together
References
List of Soundbites

Chapter 7 Moving Features Between Objects
Chapter 8 Organizing Data
Chapter 9 Simplifying Conditional Expressions
Index
List of Refactorings
Copyright

Common terms and phrases

About the author (2012)

Martin Fowler is the Chief Scientist of ThoughtWorks, an enterprise-application development and delivery company. He's been applying object-oriented techniques to enterprise software development for over a decade. He is notorious for his work on patterns, the UML, refactoring, and agile methods. Martin lives in Melrose, Massachusetts, with his wife, Cindy, and a very strange cat. His homepage is http://martinfowler.com.

Kent Beck consistently challenges software engineering dogma, promoting ideas like patterns, test-driven development, and Extreme Programming. Currently affiliated with Three Rivers Institute and Agitar Software, he is the author of many Addison-Wesley titles.

John Brant and Don Roberts are the authors of the Refactoring Browser for Smalltalk, which is found at http://st-www.cs.uiuc.edu/~brant/RefactoringBrowser/. They are also consultants who have studied both the practical and theoretical aspects of refactoring for six years.

William Opdyke's doctoral research on refactoring object-oriented frameworks at the University of Illinois led to the first major publication on this topic. He is currently a Distinguished Member of Technical Staff at Lucent Technologies/Bell Laboratories.

John Brant and Don Roberts are the authors of the Refactoring Browser for Smalltalk, which is found at http://st-www.cs.uiuc.edu/~brant/RefactoringBrowser/. They are also consultants who have studied both the practical and theoretical aspects of refactoring for six years.



Bibliographic information