Many businesses and organizations depend on older high-value PHP software that risks abandonment because it is impossible to maintain. The reasons for this may be that the software is not well designed; there is only one developer (the one who created the system) who can develop it because he didn't use common design patterns and documentation; or the code is procedural, not object-oriented. With this book, you'll learn to identify problem code and refactor it to create more effective applications using test-driven design.
Author(s): Francesco Trucchia, Jacopo Romei (auth.), Michelle Lowman, Clay Andres, Steve Anglin, Mark Beckner, Ewan Buckingham, Gary Cornell, Jonathan Gennick, Jonathan Hassell, Michelle Lowman, Matthew Moodie, Duncan Parkes, Jeffrey Pepper, Frank Pohlmann, Douglas Pundick, Ben Renow-Clarke, Dominic Shakeshaft, Matt Wade, Tom Welsh, Anita Castro, Mary Ann Fugate (eds.)
Edition: 1
Publisher: Apress
Year: 2010
Language: English
Pages: 360
Tags: Computer Science, general; Software Engineering/Programming and Operating Systems
Front Matter....Pages i-xxi
Introduction....Pages 1-3
Finding “Bad Smells” in Code....Pages 5-24
Introduction to Refactoring....Pages 25-46
Principles and Rules....Pages 47-55
Test-First Development....Pages 57-62
Refactoring Tools....Pages 63-84
Structuring Behavior....Pages 85-106
Changing Class Responsibilities....Pages 107-132
Dealing with Data Rationalization....Pages 133-166
Reducing to Essential Conditional Executions....Pages 167-186
Simplifying Method Calls....Pages 187-210
Simplifying Generalization Relationships....Pages 211-249
Legacy Code....Pages 251-264
Regression Tests....Pages 265-276
Refactoring with Patterns....Pages 277-327
Back Matter....Pages 329-335