O'Reilly logo

Rails 4 Test Prescriptions by Noel Rappin

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

What’s a Legacy?

The phrase “legacy code” is often used as a synonym for “bad code.” While the two categories clearly overlap, assuming the legacy code is always awful isn’t the most helpful way to think about a legacy.

What makes code “legacy” is not the quality, but the extent to which you have access to the context in which it was created and the reasons previous developers made the choices they made.

Prescription 50When dealing with legacy code, respect code that works. You don’t know what constraints the previous coders worked under.

Legacy code is scary—not because it’s bad, but because you don’t know what parts of the design are incidental and what parts are critical. When two different actions are backed by the same method but one of ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required