Object-Oriented Reengineering Patterns
- 1st Edition - July 16, 2002
- Authors: Serge Demeyer, Stéphane Ducasse, Oscar Nierstrasz
- Language: English
- eBook ISBN:9 7 8 - 0 - 0 8 - 0 5 1 2 9 9 - 0
The documentation is missing or obsolete, and the original developers have departed. Your team has limited understanding of the system, and unit tests are missing for many, if not… Read more
Purchase options
Institutional subscription on ScienceDirect
Request a sales quoteThe documentation is missing or obsolete, and the original developers have departed. Your team has limited understanding of the system, and unit tests are missing for many, if not all, of the components. When you fix a bug in one place, another bug pops up somewhere else in the system. Long rebuild times make any change difficult. All of these are signs of software that is close to the breaking point.Many systems can be upgraded or simply thrown away if they no longer serve their purpose. Legacy software, however, is crucial for operations and needs to be continually available and upgraded. How can you reduce the complexity of a legacy system sufficiently so that it can continue to be used and adapted at acceptable cost?Based on the authors' industrial experiences, this book is a guide on how to reverse engineer legacy systems to understand their problems, and then reengineer those systems to meet new demands. Patterns are used to clarify and explain the process of understanding large code bases, hence transforming them to meet new requirements. The key insight is that the right design and organization of your system is not something that can be evident from the initial requirements alone, but rather as a consequence of understanding how these requirements evolve.
* Describes how to reverse engineer a monolithic system to understand how it really works and how to identify potential problems.* Includes reengineering patterns that tackle well-known reengineering techniques often encountered in object-oriented programming, such as introducing polymorphism, factoring out common behavior, detecting duplicated code, and understanding design.* Shows how to build a culture of continuous reengineering for achieving flexible and maintainable object-oriented systems.
Programmers, software designers, system architects, and designers working at all major corporations worldwide
PrefaceChapter 1 Reengineering Patterns Why Do We Reengineer? What's Special about Objects? The Reengineering Life Cycle Reengineering Patterns The Form of a Reengineering Pattern A Map of Reengineering Patterns PART I Reverse Engineering Chapter 2 Setting Direction Forces Overview Pattern 2.1 Agree on Maxims Pattern 2.2 Appoint a Navigator Pattern 2.3 Speak to the Round Table Pattern 2.4 Most Valuable First Pattern 2.5 Fix Problems, Not Symptoms Pattern 2.6 If It Ain't Broke, Don't Fix It Pattern 2.7 Keep It Simple Chapter 3 First Contact Forces Overview What Next Pattern 3.1 Chat with the Maintainers Pattern 3.2 Read All the Code in One Hour Pattern 3.3 Skim the Documentation Pattern 3.4 Interview during Demo Pattern 3.5 Do a Mock Installation Chapter 4 Initial Understanding Forces Overview What Next Pattern 4.1 Analyze the Persistent Data Pattern 4.2 Speculate about Design Pattern 4.3 Study the Exceptional Entities Chapter 5 Detailed Model Capture Forces Overview What Next Pattern 5.1 Tie Code and Questions Pattern 5.2 Refactor to Understand Pattern 5.3 Step through the Execution Pattern 5.4 Look for the Contracts Pattern 5.5 Learn from the Past PART II ReengineeringChapter 6 Tests: Your Life Insurance! Forces Overview Pattern 6.1 Write Tests to Enable Evolution Pattern 6.2 Grow Your Test Base Incrementally Pattern 6.3 Use a Testing Framework Pattern 6.4 Test the Interface, Not the Implementation Pattern 6.5 Record Business Rules as Tests Pattern 6.6 Write Tests to Understand Chapter 7 Migration Strategies Forces Overview Pattern 7.1 Involve the Users Pattern 7.2 Build Confidence Pattern 7.3 Migrate Systems Incrementally Pattern 7.4 Prototype the Target Solution Pattern 7.5 Always Have a Running Version Pattern 7.6 Regression Test after Every Change Pattern 7.7 Make a Bridge to the New Town Pattern 7.8 Present the Right Interface Pattern 7.9 Distinguish Public from Published Interface Pattern 7.10 Deprecate Obsolete Interfaces Pattern 7.11 Conserve Familiarity Pattern 7.12 Use Profiler before Optimizing Chapter 8 Detecting Duplicated Code Forces Overview Pattern 8.1 Compare Code Mechanically Pattern 8.2 Visualize Code as Dotplots Chapter 9 Redistribute Responsibilities Forces Overview Pattern 9.1 Move Behavior Close to Data Pattern 9.2 Eliminate Navigation Code Pattern 9.3 Split Up God Class Chapter 10 Transform Conditionals to Polymorphism Forces Overview Pattern 10.1 Transform Self Type Checks Pattern 10.2 Transform Client Type Checks Pattern 10.3 Factor Out State Pattern 10.4 Factor Out Strategy Pattern 10.5 Introduce Null Object Pattern 10.6 Transform Conditionals into Registration Appendix Thumbnail patterns Testing Patterns A.1 Retest Persistent Problems A.2 Test Fuzzy Features A.3 Test Old Bugs Refactorings A.4 Encapsulate Field A.5 Extract Method A.6 Move Method A.7 Rename Attribute A.8 Rename Method A.9 Replace Conditional with Polymorphism Design Patterns A.10 Abstract Factory A.11 Adapter A.12 Facade A.13 Factory Method A.14 Flyweight A.15 Null Object A.16 Quantity A.17 Singleton A.18 State A.19 State Patterns A.20 Strategy A.21 Template Method A.22 Visitor References Index
- No. of pages: 282
- Language: English
- Edition: 1
- Published: July 16, 2002
- Imprint: Morgan Kaufmann
- eBook ISBN: 9780080512990
SD
Serge Demeyer
Serge Demeyer is a Professor in the Department of Mathematics and Computer Science at the University of Antwerp in Belgium. He also serves as a technical leader of the FAMOOS esprit project; a project whose goal is to come up with a set of reengineering techniques and tools to support the development of object-oriented frameworks. He has been involved in the organization of several workshops (at ECOOP and ESEC) and one tutorial concerning object-oriented reengineering.
Affiliations and expertise
University of Antwerp, Belgium.SD
Stéphane Ducasse
Stéphane Ducasse is a post doctoral researcher in the Software Composition Group in Berne, serving as technical leaders of the FAMOOS esprit project; a project whose goal it is to come up with a set of reengineering techniques and tools to support the development of object-oriented frameworks. He has been involved in the organization of several workshops (at ECOOP and ESEC) and one tutorial concerning object-oriented reengineering.
Affiliations and expertise
University of Bern, Switzerland.ON
Oscar Nierstrasz
Oscar Nierstrasz is a Professor of Computer Science at the University of Berne, where he leads the Software Composition Group. He has been active in the object-oriented research community for many years, serving on program committees of among others, ECOOP, OOPSLA and ESEC. He gave several tutorials and invited talks on object-oriented technology at various international conferences and workshops.
Affiliations and expertise
University of Bern, Switzerland.Read Object-Oriented Reengineering Patterns on ScienceDirect