Working Effectively with Legacy Code (Mobipocket) and over 360,000 other books are available for Amazon Kindle – Amazon’s new wireless reading device. Learn more

 

or
Sign in to turn on 1-Click ordering.
 
 
Express Checkout with PayPhrase
What's this? | Create PayPhrase
More Buying Choices
47 used & new from $32.00

Have one to sell? Sell yours here
 
   
Working Effectively with Legacy Code
 
See larger image
 
Start reading Working Effectively with Legacy Code (Mobipocket) on your Kindle in under a minute.

Don’t have a Kindle? Get your Kindle here.
 
  

Working Effectively with Legacy Code (Paperback)

~ Michael Feathers (Author)
4.8 out of 5 stars  See all reviews (31 customer reviews)

List Price: $59.99
Price: $38.70 & this item ships for FREE with Super Saver Shipping. Details
You Save: $21.29 (35%)
o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o
In Stock.
Ships from and sold by Amazon.com. Gift-wrap available.

Want it delivered Tuesday, December 8? Choose One-Day Shipping at checkout. Details
Ordering for Christmas? To ensure delivery by December 24, choose FREE Super Saver Shipping at checkout. Read more about holiday shipping.

35 new from $34.67 12 used from $32.00

Formats

Amazon Price New from Used from
  Kindle Edition, April 2, 2008 $30.96 -- --
  Paperback, October 1, 2004 $38.70 $34.67 $32.00

Frequently Bought Together

Customers buy this book with Clean Code: A Handbook of Agile Software Craftsmanship by Dean Wampler

Working Effectively with Legacy Code + Clean Code: A Handbook of Agile Software Craftsmanship
  • This item: Working Effectively with Legacy Code by Michael C. Feathers

    In Stock.
    Ships from and sold by Amazon.com.
    This item ships for FREE with Super Saver Shipping. Details

  • Clean Code: A Handbook of Agile Software Craftsmanship by Dean Wampler

    In Stock.
    Ships from and sold by Amazon.com.
    This item ships for FREE with Super Saver Shipping. Details


Customers Who Bought This Item Also Bought

Clean Code: A Handbook of Agile Software Craftsmanship

Clean Code: A Handbook of Agile Software Craftsmanship

by Dean Wampler
4.5 out of 5 stars (48)  $30.96
Test Driven Development: By Example

Test Driven Development: By Example

by Kent Beck
3.9 out of 5 stars (32)  $41.01
Refactoring: Improving the Design of Existing Code

Refactoring: Improving the Design of Existing Code

by Martin Fowler
4.5 out of 5 stars (139)  $41.93
xUnit Test Patterns: Refactoring Test Code

xUnit Test Patterns: Refactoring Test Code

by Gerard Meszaros
4.6 out of 5 stars (14)  $46.79
The Art of Unit Testing: With Examples in .Net

The Art of Unit Testing: With Examples in .Net

by Roy Osherove
4.8 out of 5 stars (13)  $26.39
Explore similar items

Editorial Reviews

Product Description

This is the eBook version of the printed book. If the print book includes a CD-ROM, this content is not included within the eBook version. Get more out of your legacy systems: more performance, functionality, reliability, and manageability Is your code easy to change? Can you get nearly instantaneous feedback when you do change it? Do you understand it? If the answer to any of these questions is no, you have legacy code, and it is draining time and money away from your development efforts. In this book, Michael Feathers offers start-to-finish strategies for working more effectively with large, untested legacy code bases. This book draws on material Michael created for his renowned Object Mentor seminars: techniques Michael has used in mentoring to help hundreds of developers, technical managers, and testers bring their legacy systems under control.

The topics covered include

  • Understanding the mechanics of software change: adding features, fixing bugs, improving design, optimizing performance
  • Getting legacy code into a test harness
  • Writing tests that protect you against introducing new problems
  • Techniques that can be used with any language or platform-with examples in Java, C++, C, and C#
  • Accurately identifying where code changes need to be made
  • Coping with legacy systems that aren't object-oriented
  • Handling applications that don't seem to have any structure

This book also includes a catalog of twenty-four dependency-breaking techniques that help you work with program elements in isolation and make safer changes.

--This text refers to the Kindle Edition edition.


From the Back Cover

Get more out of your legacy systems: more performance, functionality, reliability, and manageability

Is your code easy to change? Can you get nearly instantaneous feedback when you do change it? Do you understand it? If the answer to any of these questions is no, you have legacy code, and it is draining time and money away from your development efforts.

In this book, Michael Feathers offers start-to-finish strategies for working more effectively with large, untested legacy code bases. This book draws on material Michael created for his renowned Object Mentor seminars: techniques Michael has used in mentoring to help hundreds of developers, technical managers, and testers bring their legacy systems under control.

The topics covered include

  • Understanding the mechanics of software change: adding features, fixing bugs, improving design, optimizing performance
  • Getting legacy code into a test harness
  • Writing tests that protect you against introducing new problems
  • Techniques that can be used with any language or platform—with examples in Java, C++, C, and C#
  • Accurately identifying where code changes need to be made
  • Coping with legacy systems that aren't object-oriented
  • Handling applications that don't seem to have any structure

This book also includes a catalog of twenty-four dependency-breaking techniques that help you work with program elements in isolation and make safer changes.


© Copyright Pearson Education. All rights reserved.


Product Details


More About the Author

Michael C. Feathers
Discover books, learn about writers, read author blogs, and more.

Visit Amazon's Michael C. Feathers Page

What Do Customers Ultimately Buy After Viewing This Item?


Tags Customers Associate with This Product

 (What's this?)
Click on a tag to find related items, discussions, and people.
 
(3)
(3)

Your tags: Add your first tag
 

 

Customer Reviews

31 Reviews
5 star:
 (28)
4 star:
 (1)
3 star:
 (1)
2 star:
 (1)
1 star:    (0)
 
 
 
 
 
Average Customer Review
4.8 out of 5 stars (31 customer reviews)
 
 
 
 
Share your thoughts with other customers:
Most Helpful Customer Reviews

 
52 of 54 people found the following review helpful:
5.0 out of 5 stars a wealth of practical information and solutions, October 13, 2004
By J.J. Langr (United States) - See all my reviews
Martin Fowler's book on Refactoring showed us how to improve the design of our code. We learned to make changes safely, by taking small, rote steps, and by ensuring that we ran our tests after each small change. But what if we're working on the typical ugly system with no tests? In Working Effectively With Legacy Code, Michael Feathers tackles the problem that most of us end up dealing with.

Feathers does an excellent job of articulating the problems and scenarios, using clear examples from C, C++, Java, and C#. Many of the code examples look a lot like real examples I come across all the time--they don't appear to be fabricated.

Working Effectively With Legacy Code contains a catalog that provides a wealth of solutions. The catalog shows how to resolve concerns like, "I'm changing the same code all over the place" and "how do I safely change procedural code?"

The book is highly entertaining and comes across as a conversation with a really sharp, really patient guru developer. Often, it's a chore to slog through code-heavy books. But Feathers manages to keep my attention with interesting stories, loads of examples, and well-written text.

I think that Working Effectively With Legacy Code is an important book. The vast majority of existing code presents the classic catch-22: you can't change it safely because it doesn't have tests, and you can't write tests without changing it to easily support testing. It's not an easy problem, and most people will give you high-level ideas for solving it. Feathers is the first person to dig deep and present a wealth of knowledge and insight on the problem, all in one place. I'll be pulling this book from my shelf for years to come.
Comment Comment | Permalink | Was this review helpful to you? Yes No (Report this)



 
21 of 21 people found the following review helpful:
5.0 out of 5 stars excellent reference and guide, November 11, 2004
By Jeanne Boyarsky (New York, NY) - See all my reviews
"Working Effectively with Legacy Code" is a very valuable resource. The author defines "legacy code" as "code without tests." It doesn't matter whether the code was written last week or ten years ago. There is more emphasis on old code that nobody understands, mainly because it is messier and harder to work with.

The examples in the book are mainly in C, C++ and Java, but there are a couple in C# and Ruby. While it is essential to know one of these languages, the author provides enough information to understand the others. When a technique only applies to a certain language, it is clearly indicated.

The author shows how different diagrams can help you learn how to understand code. In addition to UML, there are dependency and effect sketches. The author uses these to show how to think about understanding and refactoring. Other tools, such as refactoring browsers and mocks are explained.

Speaking of refactoring, there are "dependency breaking techniques" (aka refactorings) with step-by-step instructions (Martin Fowler style) throughout the book. There are also explanations of why patterns and design rules exist. Most importantly, there are lots and lots of cross-references and an excellent index.

Working with legacy code isn't fun, but this book helps make it as painless as possible. With the split emphasis between psychological/understanding/techniques and refactoring, this book is both a great read and an excellent reference.
Comment Comment | Permalink | Was this review helpful to you? Yes No (Report this)



 
17 of 17 people found the following review helpful:
5.0 out of 5 stars No more fairy-land, October 20, 2004
The average book on Agile software development describes a fairyland of greenfield projects, with wall-to-wall tests that run after every few edits, and clean & simple source code.

The average software project, in our industry, was written under some aspect of code-and-fix, and without automated unit tests. And we can't just throw this code away; it represents a significant effort debugging and maintaining. It contains many latent requirements decisions. Just as Agile processes are incremental, Agile adoption must be incremental too. No more throwing away code just because it looked at us funny.

Mike begins his book with a very diplomatic definition of "Legacy". I'l skip ahead to the undiplomatic version: Legacy code is code without unit tests.

Before cleaning that code up, and before adding new features and removing bugs, such code must be de-legacified. It needs unit tests.

To add unit tests, you must change the code. To change the code, you need unit tests to show how safe your change was.

The core of the book is a cookbook of recipes to conduct various careful attacks. Each presents a particular problem, and a relatively safe way to migrate the code towards tests.

Code undergoing this migration will begin to experience the benefits of unit tests, and these benefits will incrementally make new tests easier to write. These efforts will make aspects of a legacy codebase easy to change.

It's an unfortunate commentary on the state of our programming industry how much we need this book.
Comment Comment | Permalink | Was this review helpful to you? Yes No (Report this)


Share your thoughts with other customers: Create your own review
 
 
 
Most Recent Customer Reviews

2.0 out of 5 stars Not applicable for Large Legacy C applications
I work at a decent sized telecommunications company. We have legacy code written in C that is over 1 million lines of code. Read more
Published 4 days ago by David M. Boose

5.0 out of 5 stars Classic, Timeless Book for Techniques To Bring Your Legacy Systems Under Control
This was one of those famous, timeless books (like Code Complete) that I had heard many people talk about, and I finally read it. Read more
Published 1 month ago by Cal Zant

5.0 out of 5 stars Best Software Book I've Read
I have read many books by the most respected names in software development. This book is probably the best software development book that I have ever read. Read more
Published 4 months ago by David E. Anderson

5.0 out of 5 stars Essential reading to sharpen your tools
This is a must-read for software engineers. It clarifies some powerful techniques for bridging the gap between legacy (test-less and/or untestable) code and fresh, testable code... Read more
Published 6 months ago by John Wesley Watson

5.0 out of 5 stars Great book
Excellent book helping you to handle legacy systems. Gave me a lot of ideas on how to go on with the system I am working on. Read more
Published 8 months ago by AG JANSEN

5.0 out of 5 stars Foundational Knowledge Most Lack for the Average Developer
Quite simply you cannot afford to be lacking this knowledge as it is simply standard in software organizations where success is not something taken lightly.
Published 9 months ago by Damon Carr

5.0 out of 5 stars best book on working with other people's code
Short and to the point. Filled with great techniques for handling legacy monsters. Much more practical than Martin Fowler's Refactoring book.
Published 11 months ago by DarkReader

5.0 out of 5 stars Great book!
This is the canonical book for working with legacy code (and you can even learn some if you're not working with legacy code). I use the things I learned from it daily!
Published 11 months ago by J. Baker

5.0 out of 5 stars Pleasant to read and extremely practical.
I am an entry level software developer who has only been in the industry for a little over a year. While I was in college, I was always provided with very clean code bases to work... Read more
Published 16 months ago by Andrew D. Conard

5.0 out of 5 stars Most of this is 'duh' but good to have in writing
I think most of the information is pretty straightforward for those who have modeled objects and component packages. Read more
Published 17 months ago by James D. Peckham

Only search this product's reviews



Customer Discussions

This product's forum
Discussion Replies Latest Post
No discussions yet

Ask questions, Share opinions, Gain insight
Start a new discussion
Topic:
First post:
Prompts for sign-in
 

Search Customer Discussions
Search all Amazon discussions
   




Product Information from the Amapedia Community

Beta (What's this?)


Look for Similar Items by Category


Look for Similar Items by Subject

 

Feedback

If you need help or have a question for Customer Service, contact us.
 Would you like to update product info or give feedback on images?
Is there any other feedback you would like to provide?

Your comments can help make our site better for everyone.


Your Recent History

 (What's this?)

After viewing product detail pages or search results, look here to find an easy way to navigate back to pages you are interested in.