
Details
Book description
Working Effectively with Legacy Code is a practical guide to changing large, untested software systems with greater confidence. Michael Feathers focuses on the challenges developers face when code is difficult to understand, modify, or verify, and presents strategies for bringing such systems under control while continuing to maintain and improve them.
The book addresses the mechanics of software change, including adding features, fixing bugs, improving design, and optimizing performance. It explains how to establish a test harness around existing code and write tests that help guard against regressions. Readers will also find guidance on locating the parts of a system that need to change, working with code that is not object-oriented, and approaching applications whose structure is unclear.
A central emphasis is making safe, incremental changes by isolating program elements and breaking dependencies. The book includes a catalog of 24 dependency-breaking techniques, with examples drawn from Java, C++, C, and C#. Its methods are presented as applicable across languages and platforms, making the material relevant to a broad range of development environments.
Written for software developers, testers, and technical managers responsible for existing systems, this book offers both a way to think about legacy code and concrete techniques for working with it. It is especially useful to practitioners who need to improve reliability and maintainability without first replacing an entire codebase.