Refactoring: Improving the Design of Existing Code (Object Technology Series)De (autor) Martin Fowler
en Limba Engleză Hardback – 2019
The Definitive Guide to Refactoring: Updated and Expanded, with New Refactorings and Code Examples
"Any fool can write code that a computer can understand. Good programmers write code that humans can understand."
-M. Fowler (1999)
For more than twenty years, professional programmers worldwide have relied on Martin Fowler's Refactoring to improve the design of existing code and enhance software maintainability. This eagerly awaited revision has been fully updated to reflect crucial changes in the programming landscape since the first edition.
Like the original, this new edition explains what refactoring is, why you should refactor, how to recognize code that needs refactoring, and how to actually do it. Whatever language you use, Fowler's explanations and examples will help you refactor successfully.
- Understand the process of refactoring
- Quickly apply useful refactorings to make a program easier to comprehend and change
- Discover the general principles of refactoring
- Recognize tradeoffs and obstacles to refactoring
- Recognize "bad smells" in code that signal opportunities to refactor
- Build solid tests for your refactorings
- Explore the refactorings, each with explanations, motivation, mechanics, and simple examples
Purchasers of this book get free access to the canonical web edition, which presents many additional refactorings and related resources. See inside the book for details about how to access the web edition.
- 1. Refactoring, a First Example
- 2. Principles in Refactoring
- 3. Bad Smells in Code
- 4. Building Tests
- 5. Toward a Catalog of Refactorings
- 6. Composing Methods
- 7. Moving Features between Objects
- 8. Organizing Data
- 9. Simplifying Conditional Expressions
- 10. Making Method Calls Simpler
- 11. Dealing with Generalization
- 12. Big Refactorings
- 13. Refactoring, Reuse, and Reality
- 14. Refactoring Tools
- 15. Putting It All Together