DeepRead
Cover of Working effectively with legacy code

Working effectively with legacy code

Michael C. Feathers · 2004

Programming and computer science › Testing and legacy code

#108 most recommended

About the book

Working Effectively with Legacy Code covers how to change existing software that was written without tests, which Feathers defines as legacy code. Its scope is the practical work of making that code safe to modify: understanding what it does, adding tests around it, and restructuring it in small steps. Feathers's central claim is that legacy code can be changed safely if you first get it under test, even when the code is tightly coupled and hard to test. The main technique is to find seams, places where behaviour can be altered without editing the code at that point, and to use them to break dependencies. Characterization tests record what the code currently does so that refactoring can proceed without changing behaviour. The book presents a catalogue of these dependency-breaking techniques and argues that disciplined, incremental refactoring under test is more reliable than rewriting.

Written by Claude from what it knows of this book.

What Hacker News says 79% recommend · 1% critical

0204020082015202020262022 peak · 37
This bookAverage book in Testing and legacy code

In the commenters’ own words

What Open Library readers say 4.00 from 7 ratings

  1. 51
  2. 45
  3. 31
  4. 20
  5. 10
  • 67 want to read
  • 5 reading
  • 12 have read

Only 7 ratings: treat the average as a hint.

Open Library’s page for the book

What critics say, via Wikipedia

No Wikipedia article about this book yet, so no critics to quote.

Reddit communities — coming later

The threads it came up in

Details

First published
2004
ISBN
9780131177055
Editions known
6 at Open Library
Open Library
OL5742702W

005.1Application softwareApplication software, developmentApplication software--developmentDevelopmentQa76.76.a65 f43 2005

Explore in the mosaic

Read next: its neighbours on the mosaic