The Art of Modifying Code
Tags
Summary
Editor's review
Who it's for
A good fit for
- Software engineers who are maintaining or taking over legacy codebases lacking documentation and tests
- Intermediate and senior developers who hope to improve code testability and learn safe refactoring techniques
- Technical personnel with a deep interest in software engineering practices, design patterns, and decoupling techniques
- Team technical leads seeking methodologies to improve team code quality and maintainability
Not a good fit for
- Complete beginners who have not yet mastered the basic syntax of a mainstream programming language
- Readers interested only in algorithm theory or cutting-edge technology and not in the details of engineering practice
Reading tips
- It is recommended to combine the specific technical points in the book with finding a small piece of suitable "legacy code" in your current project for practice, starting with writing the first test.
- When reading, focus on Part II, "Changing Code," and use it as a desk reference for targeted consultation when encountering specific refactoring difficulties.
- It can be read together with Refactoring: Improving the Design of Existing Code; the former focuses on ideas and patterns, while this book focuses more on specific entry methods under test protection.
About the publisher
In addition to science and technology and professional publishing, the books in our catalog from China Machine Press also reflect a sustained focus on psychology, computing, management, finance and economics, and social sciences. In psychology, the catalog includes works by C. G. Jung and introductions to analytical psychology, as well as applied topics such as stress and health, and addiction and healing. In computing, it features Structure and Interpretation of Computer Programs (JavaScript Edition). Management and finance titles include Administrative Behavior (4th Edition), The Price of Inequality (Collector's Edition), and This Time Is Different: Eight Centuries of Financial Folly (Commemorative Edition). In the philosophy and history of science, there is The Worldview: The Third Edition. Relevant authors include C. G. Jung, William McGuire, Sonu Shamdasani, and Gabor Maté. Public information is limited; the above summarizes the publisher's profile based solely on the books in our catalog.
Contents
- Part I: The Mechanics of Change
- Chapter 1: Modifying Software
- Chapter 2: Working with Feedback
- Chapter 3: Sensing and Separation
- Chapter 4: The Seam Model
- Chapter 5: Tools
- Part II: Techniques for Changing Code
- Chapter 6: Time Pressure, but You Have to Make Changes
- Chapter 7: Long-Term Changes
- Chapter 8: Adding Features
- Chapter 9: You Can't Get a Class into a Test Harness
- Chapter 10: You Can't Run a Method in a Test Harness
- Chapter 11: Which Methods Should You Test When Making Changes
- Chapter 12: Multiple Tests in the Same Place—Should You Break Dependencies for All Related Classes
- Chapter 13: How Should You Write Tests When Making Changes
- Chapter 14: Tricky Library Dependency Problems
- Chapter 15: API Calls Everywhere
- Chapter 16: Insufficient Understanding of the Code
- Chapter 17: The Application Has No Discernible Structure
- Chapter 18: Test Code Gets in the Way
- Chapter 19: How to Safely Make Changes to a Non-Object-Oriented Project
- Chapter 20: Dealing with Large Classes
- Chapter 21: You Need to Change a Lot of Similar Code
- Chapter 22: You Need to Change a Giant Method but Can't Write Tests for It
- Chapter 23: Reducing the Risk of Change
- Chapter 24: When You Feel Desperate
- Part III: Dependency-Breaking Techniques
FAQ
What programming language is mainly used for examples in this book?
What is the difference between this book and Refactoring?
Are the techniques mentioned in the book really effective for large projects?
Comments
Find this book
This site is an index: you start “Search all sources” in your browser, and the entries it lists all point to third-party sites; please judge their availability yourself.
About the author
Michael C. Feathers is an author in the field of software development and code maintenance. Publicly available information about him is limited, and no reliable record of his nationality, dates of birth and death, or full career has been found. One work of his is included in this library, The Art of Changing Code (Working Effectively with Legacy Code), classified under general computing. Judging from this representative work, his writing focuses on reading, modifying, and refactoring existing code for developers who must maintain legacy systems in real projects, stressing gradual improvement of code structure under the protection of tests rather than starting over. The subject belongs to software engineering practice rather than theory, and the style is pragmatic and close to everyday development work. The book is fairly well known among Chinese technical readers and is often regarded as a reference for dealing with legacy code.
Hou Bowei is an author about whom limited public information is available, and little can be confirmed about their identity. The library holds one work by this author, The Art of Modifying Code, commonly classified under general computing. Judging from the subject matter, the writing concerns the highly practical field of code modification and software maintenance, aimed at developers who need to read, adjust, and improve existing code. Books of this kind tend to emphasize hands-on methods and engineering experience rather than abstract theory, and their readers are usually technical professionals with some programming background who wish to improve code quality and maintenance efficiency. Since no reliable public records of the author's life, education, or career have been found, no speculation is offered here. Overall, Hou Bowei appears in the library as an author writing on practical programming and code work, and this work offers Chinese technical readers an entry point for learning about approaches to modifying code.