2.7: If It Ain’t Broke, Don’t Fix It

Object-Oriented Reengineering Patterns · LibreTexts

0%

Contents

    Text

    Size
    100%
    Theme
    Typeface
    Line length
    Spacing

    Read aloud

    How

    Speed: 1×
    Light up
    Highlight

    Symbols: Mulberry Symbols, © 2018–2026 Steve Lee, CC BY-SA 4.0 (licence, the set), the site's own copies.

    From LibreTexts, under CC BY-SA, as the source states it; its equations are written in TeX, which the PDF shows typeset. This page at LibreTexts.

    2.7: If It Ain’t Broke, Don’t Fix It

    Problem Which parts of a legacy system should you reengineer and which should you leave as they are?

    Solution Only fix the parts that are “broken” — those that can no longer be adapted to planned changes.

    Discussion Change for change’s sake is not necessarily a good thing. There may well be parts of the legacy system that may be ugly, but work well and do not pose any significant maintenance effort. If these components can be isolated and wrapped, it may never be necessary to replace them.

    Anytime you “fix” something, you also risk breaking something else in the system. You also risk wasting precious time and effort on marginal issues.

    In a reengineering project, the parts that are “broken” are the ones that are putting the legacy at risk:

    • components that need to be frequently adapted to meet new requirements, but are difficult to modify due to high complexity and design drift,

    • components that are valuable, but traditionally contain a large number of defects.

    Software artifacts that are stable and do not threaten the future of the legacy system are not “broken” and do not need to be reengineered, no matter what state the code is in.


    This page titled 2.7: If It Ain’t Broke, Don’t Fix It was last modified on Tue, 01 Dec 2020 03:50:29 GMT and is shared under a CC BY-SA license and was authored, remixed, and/or curated by Serge Demeyer, Stéphane Ducasse, Oscar Nierstrasz.