---
title: "Meaning & Key Takeaway of: If I have the same logic in two places, I…"
description: "\"“If I have the same logic in two places, I work with the design to understand how I can have only one copy. Designs without duplication tend to be easy..."
image: "https://sms4smile.com/quotes/i/77d/kent-beck-12533_duplication_if-i-have-the-same-logic-in-two-places-i_31931.jpg"
---

#  If I have the same logic in two places, I work with the…

![“If I have the same logic in two places, I work with the design to understand how I can have only one copy. Designs without duplication tend to be easy to change.” quote by Kent Beck](https://sms4smile.com/quotes/i/77d/kent-beck-12533_duplication_if-i-have-the-same-logic-in-two-places-i_31931.jpg)   [Download](https://sms4smile.com/quotes/i/77d/kent-beck-12533_duplication_if-i-have-the-same-logic-in-two-places-i_31931.jpg) [Open image](https://sms4smile.com/quotes/i/77d/kent-beck-12533_duplication_if-i-have-the-same-logic-in-two-places-i_31931.jpg)

> ““If I have the same logic in two places, I work with the design to understand how I can have only one copy. Designs without duplication tend to be easy to change.””

[Kent Beck](https://sms4smile.com/quotes/author/kent-beck/)

## About This Quote

This interpretation was drafted with AI assistance. It is one reading of the quote, not the author's own explanation.

Eliminating duplicated logic simplifies maintenance and enhances adaptability of software designs.

**In simple terms:** Avoid code duplication for easier changes.

Key Takeaway

Single source of truth reduces complexity.

Themes

software design maintainability DRY principle refactoring change management

Mood

pragmatic analytical

Type

advice principle

When to use this quote

- legacy system cleanup
- feature addition
- bug fixing
- team code reviews

Key Concepts

code duplication design simplicity modularization

Practical Applications

- refactor existing codebases
- design new modules with DRY

Questions to Reflect On

- How does duplication affect future modifications?
- What strategies ensure a single source of truth?

★ ★ ★ ★ ★   No ratings yet

[Duplication](https://sms4smile.com/quotes/about/duplication/)

## Related quotes

> [Or the Department of Education and another ministry were worried about duplication of effort, so what did they do? They set up two committees…](https://sms4smile.com/quotes/rory-bremner/or-the-department-of-education-and-another-ministry-were-worried/)

[Rory Bremner](https://sms4smile.com/quotes/author/rory-bremner/)

> [One of the things I've been trying to do is look for simpler or rules underpinning good or bad design. I think one of…](https://sms4smile.com/quotes/martin-fowler/one-of-the-things-i-ve-been-trying-to-do-is-look-for-simpler-or-rules/)

[Martin Fowler](https://sms4smile.com/quotes/author/martin-fowler/)

> [Our camera does not produce pretty pictures, but exact duplications that, through our renunciation of photographic effects, turn out to be relatively objective. The…](https://sms4smile.com/quotes/bernd-becher/our-camera-does-not-produce-pretty-pictures-but-exact-duplications/)

[Bernd Becher](https://sms4smile.com/quotes/author/bernd-becher/)

> [Life is a mirror that magnifies. What we see 'out there' is only a duplication of what we are inside.](https://sms4smile.com/quotes/david-wolfe/life-is-a-mirror-that-magnifies-what-we-see-out-there-is-only-a/)

[David Wolfe](https://sms4smile.com/quotes/author/david-wolfe/)

> [If I was a locksmith, I'd be pimping that out man. I'll trade you a free key duplication for. That joke made me laugh…](https://sms4smile.com/quotes/mitch-hedberg/if-i-was-a-locksmith-i-d-be-pimping-that-out-man-i-ll-trade-you-a/)

[Mitch Hedberg](https://sms4smile.com/quotes/author/mitch-hedberg/)

> [Only in black and white can I see the design and textures. I don't consider color photography art. Black and white is an interpretation.…](https://sms4smile.com/quotes/clyde-butcher/only-in-black-and-white-can-i-see-the-design-and-textures-i-don-t/)

Clyde Butcher

> [We are reorganizing in order to eliminate duplication and redundancy.](https://sms4smile.com/quotes/herb-caen/we-are-reorganizing-in-order-to-eliminate-duplication-and-redundancy/)

[Herb Caen](https://sms4smile.com/quotes/author/herb-caen/)

> [Success without duplication is merely future failure in disguise.](https://sms4smile.com/quotes/randy-gage/success-without-duplication-is-merely-future-failure-in-disguise/)

[Randy Gage](https://sms4smile.com/quotes/author/randy-gage/)

> [“Duplication may be the root of all evil in software.”](https://sms4smile.com/quotes/robert-c-martin/duplication-may-be-the-root-of-all-evil-in-software/)

[Robert C. Martin](https://sms4smile.com/quotes/author/robert-c-martin/)

> [“Beauty is the replication and duplication of mind’s delusion. It is not uniqueness or exceptionality; it is the mentality of belonging and fitting in.”](https://sms4smile.com/quotes/m-f-moonzajer/beauty-is-the-replication-and-duplication-of-mind-s-delusion-it-is/)

[M.F. Moonzajer](https://sms4smile.com/quotes/author/m-f-moonzajer/)

> [Photographs are but one link in a potentially endless chain of reduplication; themselves duplicates (of both their objects and, in a sense, their negatives),…](https://sms4smile.com/quotes/craig-owens/photographs-are-but-one-link-in-a-potentially-endless-chain-of/)

[Craig Owens](https://sms4smile.com/quotes/author/craig-owens/)

> [Hip-hop in Africa has been very often a duplication of an American experience, but in a context that's totally alien to it.](https://sms4smile.com/quotes/k-naan/hip-hop-in-africa-has-been-very-often-a-duplication-of-an-american/)

[K'naan](https://sms4smile.com/quotes/author/k-naan/)

> [The problems of this world are only truly solved in two ways: by extinction or duplication.](https://sms4smile.com/quotes/susan-sontag/the-problems-of-this-world-are-only-truly-solved-in-two-ways-by/)

[Susan Sontag](https://sms4smile.com/quotes/author/susan-sontag/)

> [Duplication never works for anybody.](https://sms4smile.com/quotes/dulquer-salmaan/duplication-never-works-for-anybody/)

[Dulquer Salmaan](https://sms4smile.com/quotes/author/dulquer-salmaan/)

> [It's almost as if this is the fundamental procedure in modern society: duplication and recycling.](https://sms4smile.com/quotes/susan-sontag/it-s-almost-as-if-this-is-the-fundamental-procedure-in-modern-society/)

[Susan Sontag](https://sms4smile.com/quotes/author/susan-sontag/)

## More by Kent Beck

> [If you're having trouble succeeding, fail.](https://sms4smile.com/quotes/kent-beck/if-you-re-having-trouble-succeeding-fail/)

[Kent Beck](https://sms4smile.com/quotes/author/kent-beck/)

> [Responsible Development shares many practices with XP but the roots are different. Responsible Development's values are honesty, transparency, accountability and responsibility. These lead me…](https://sms4smile.com/quotes/kent-beck/responsible-development-shares-many-practices-with-xp-but-the-roots/)

[Kent Beck](https://sms4smile.com/quotes/author/kent-beck/)

> [“However, most defects end up costing more than it would have cost to prevent them. Defects are expensive when they occur, both the direct…](https://sms4smile.com/quotes/kent-beck/however-most-defects-end-up-costing-more-than-it-would-have-cost-to/)

[Kent Beck](https://sms4smile.com/quotes/author/kent-beck/)

> [“Trust energizes participants. We feel good when things work smoothly. We need to be safe to experiment and make mistakes. We need testing to…](https://sms4smile.com/quotes/kent-beck/trust-energizes-participants-we-feel-good-when-things-work-smoothly/)

[Kent Beck](https://sms4smile.com/quotes/author/kent-beck/)

> [“If there are forms of testing, like stress and load testing, that find defects after development is "complete," bring them into the development cycle.…](https://sms4smile.com/quotes/kent-beck/if-there-are-forms-of-testing-like-stress-and-load-testing-that-find/)

[Kent Beck](https://sms4smile.com/quotes/author/kent-beck/)

> [“If you have a month to plan a project in detail, spend it on four one-week iterations developing while you improve your estimates. If…](https://sms4smile.com/quotes/kent-beck/if-you-have-a-month-to-plan-a-project-in-detail-spend-it-on-four-one/)

[Kent Beck](https://sms4smile.com/quotes/author/kent-beck/)

> [Optimism is an occupational hazard of programming; feedback is the treatment.](https://sms4smile.com/quotes/kent-beck/optimism-is-an-occupational-hazard-of-programming-feedback-is-the/)

[Kent Beck](https://sms4smile.com/quotes/author/kent-beck/)

> [“Some of the teams who read and applied the first edition of this book didn't get the part of the message about the last…](https://sms4smile.com/quotes/kent-beck/some-of-the-teams-who-read-and-applied-the-first-edition-of-this-book/)

[Kent Beck](https://sms4smile.com/quotes/author/kent-beck/)

> [“Beta testing is a symptom of weak testing practices and poor communication with customers.”](https://sms4smile.com/quotes/kent-beck/beta-testing-is-a-symptom-of-weak-testing-practices-and-poor/)

[Kent Beck](https://sms4smile.com/quotes/author/kent-beck/)

> [“Responsibility cannot be assigned; it can only be accepted. If someone tries to give you responsibility, only you can decide if you are responsible…](https://sms4smile.com/quotes/kent-beck/responsibility-cannot-be-assigned-it-can-only-be-accepted-if-someone/)

[Kent Beck](https://sms4smile.com/quotes/author/kent-beck/)

> [Whether you draw diagrams that generate code or you type at a browser, you are coding.](https://sms4smile.com/quotes/kent-beck/whether-you-draw-diagrams-that-generate-code-or-you-type-at-a-browser/)

[Kent Beck](https://sms4smile.com/quotes/author/kent-beck/)

> [“Folk wisdom in software development teaches that interfaces shouldn't be unduly influenced by implementations. Writing a test first is a concrete way to achieve…](https://sms4smile.com/quotes/kent-beck/folk-wisdom-in-software-development-teaches-that-interfaces-shouldn-t/)

[Kent Beck](https://sms4smile.com/quotes/author/kent-beck/)

> [“To achieve this his team had a sophisticated stress testing environment. When they wanted to improve the architecture they would first improve the stress…](https://sms4smile.com/quotes/kent-beck/to-achieve-this-his-team-had-a-sophisticated-stress-testing/)

[Kent Beck](https://sms4smile.com/quotes/author/kent-beck/)

> [Of the four project development variables - scope, cost, time and quality - quality isn't really a free variable. The only possible values are…](https://sms4smile.com/quotes/kent-beck/of-the-four-project-development-variables-scope-cost-time-and-quality/)

[Kent Beck](https://sms4smile.com/quotes/author/kent-beck/)

> [“Cards on a wall is a way of practicing transparency, valuing and respecting the input of each team member. The project manager has the…](https://sms4smile.com/quotes/kent-beck/cards-on-a-wall-is-a-way-of-practicing-transparency-valuing-and/)

[Kent Beck](https://sms4smile.com/quotes/author/kent-beck/)

[Explore all 54 Kent Beck quotes ](https://sms4smile.com/quotes/author/kent-beck/)

## More Duplication quotes

> [Or the Department of Education and another ministry were worried about duplication of effort, so what did they do? They set up two committees…](https://sms4smile.com/quotes/rory-bremner/or-the-department-of-education-and-another-ministry-were-worried/)

[Rory Bremner](https://sms4smile.com/quotes/author/rory-bremner/)

> [Duplication never works for anybody.](https://sms4smile.com/quotes/dulquer-salmaan/duplication-never-works-for-anybody/)

[Dulquer Salmaan](https://sms4smile.com/quotes/author/dulquer-salmaan/)

> [The problems of this world are only truly solved in two ways: by extinction or duplication.](https://sms4smile.com/quotes/susan-sontag/the-problems-of-this-world-are-only-truly-solved-in-two-ways-by/)

[Susan Sontag](https://sms4smile.com/quotes/author/susan-sontag/)

> [Hip-hop in Africa has been very often a duplication of an American experience, but in a context that's totally alien to it.](https://sms4smile.com/quotes/k-naan/hip-hop-in-africa-has-been-very-often-a-duplication-of-an-american/)

[K'naan](https://sms4smile.com/quotes/author/k-naan/)

> [Photographs are but one link in a potentially endless chain of reduplication; themselves duplicates (of both their objects and, in a sense, their negatives),…](https://sms4smile.com/quotes/craig-owens/photographs-are-but-one-link-in-a-potentially-endless-chain-of/)

[Craig Owens](https://sms4smile.com/quotes/author/craig-owens/)

> [“Beauty is the replication and duplication of mind’s delusion. It is not uniqueness or exceptionality; it is the mentality of belonging and fitting in.”](https://sms4smile.com/quotes/m-f-moonzajer/beauty-is-the-replication-and-duplication-of-mind-s-delusion-it-is/)

[M.F. Moonzajer](https://sms4smile.com/quotes/author/m-f-moonzajer/)

> [“Duplication may be the root of all evil in software.”](https://sms4smile.com/quotes/robert-c-martin/duplication-may-be-the-root-of-all-evil-in-software/)

[Robert C. Martin](https://sms4smile.com/quotes/author/robert-c-martin/)

> [Success without duplication is merely future failure in disguise.](https://sms4smile.com/quotes/randy-gage/success-without-duplication-is-merely-future-failure-in-disguise/)

[Randy Gage](https://sms4smile.com/quotes/author/randy-gage/)

> [We are reorganizing in order to eliminate duplication and redundancy.](https://sms4smile.com/quotes/herb-caen/we-are-reorganizing-in-order-to-eliminate-duplication-and-redundancy/)

[Herb Caen](https://sms4smile.com/quotes/author/herb-caen/)

> [Only in black and white can I see the design and textures. I don't consider color photography art. Black and white is an interpretation.…](https://sms4smile.com/quotes/clyde-butcher/only-in-black-and-white-can-i-see-the-design-and-textures-i-don-t/)

Clyde Butcher

> [If I was a locksmith, I'd be pimping that out man. I'll trade you a free key duplication for. That joke made me laugh…](https://sms4smile.com/quotes/mitch-hedberg/if-i-was-a-locksmith-i-d-be-pimping-that-out-man-i-ll-trade-you-a/)

[Mitch Hedberg](https://sms4smile.com/quotes/author/mitch-hedberg/)

> [Life is a mirror that magnifies. What we see 'out there' is only a duplication of what we are inside.](https://sms4smile.com/quotes/david-wolfe/life-is-a-mirror-that-magnifies-what-we-see-out-there-is-only-a/)

[David Wolfe](https://sms4smile.com/quotes/author/david-wolfe/)

> [Our camera does not produce pretty pictures, but exact duplications that, through our renunciation of photographic effects, turn out to be relatively objective. The…](https://sms4smile.com/quotes/bernd-becher/our-camera-does-not-produce-pretty-pictures-but-exact-duplications/)

[Bernd Becher](https://sms4smile.com/quotes/author/bernd-becher/)

> [One of the things I've been trying to do is look for simpler or rules underpinning good or bad design. I think one of…](https://sms4smile.com/quotes/martin-fowler/one-of-the-things-i-ve-been-trying-to-do-is-look-for-simpler-or-rules/)

[Martin Fowler](https://sms4smile.com/quotes/author/martin-fowler/)

> [It's almost as if this is the fundamental procedure in modern society: duplication and recycling.](https://sms4smile.com/quotes/susan-sontag/it-s-almost-as-if-this-is-the-fundamental-procedure-in-modern-society/)

[Susan Sontag](https://sms4smile.com/quotes/author/susan-sontag/)

[Browse all 36 Duplication quotes ](https://sms4smile.com/quotes/about/duplication/)

```json
{
    "@context": "https://schema.org",
    "@graph": [
        {
            "@type": "Quotation",
            "text": "“If I have the same logic in two places, I work with the design to understand how I can have only one copy. Designs without duplication tend to be easy to change.”",
            "creator": {
                "@type": "Person",
                "name": "Kent Beck"
            },
            "isPartOf": {
                "@id": "https://sms4smile.com/quotes/#website"
            },
            "url": "https://sms4smile.com/quotes/kent-beck/if-i-have-the-same-logic-in-two-places-i-work-with-the-design-to/",
            "about": {
                "@type": "Thing",
                "name": "Duplication"
            },
            "@id": "https://sms4smile.com/quotes/kent-beck/if-i-have-the-same-logic-in-two-places-i-work-with-the-design-to/#quotation",
            "image": {
                "@type": "ImageObject",
                "@id": "https://sms4smile.com/quotes/i/77d/kent-beck-12533_duplication_if-i-have-the-same-logic-in-two-places-i_31931.jpg",
                "contentUrl": "https://sms4smile.com/quotes/i/77d/kent-beck-12533_duplication_if-i-have-the-same-logic-in-two-places-i_31931.jpg",
                "url": "https://sms4smile.com/quotes/i/77d/kent-beck-12533_duplication_if-i-have-the-same-logic-in-two-places-i_31931.jpg",
                "width": 1080,
                "height": 1080,
                "caption": "“If I have the same logic in two places, I work with the design to understand how I can have only one copy…” — Kent Beck",
                "creditText": "SMS4Smile Quotes",
                "creator": {
                    "@id": "https://sms4smile.com/quotes/#organization"
                }
            }
        },
        {
            "@type": "BreadcrumbList",
            "itemListElement": [
                {
                    "@type": "ListItem",
                    "position": 1,
                    "name": "Home",
                    "item": "https://sms4smile.com/"
                },
                {
                    "@type": "ListItem",
                    "position": 2,
                    "name": "Quotes",
                    "item": "https://sms4smile.com/quotes/"
                },
                {
                    "@type": "ListItem",
                    "position": 3,
                    "name": "Kent Beck",
                    "item": "https://sms4smile.com/quotes/author/kent-beck/"
                },
                {
                    "@type": "ListItem",
                    "position": 4,
                    "name": "“If I have the same logic...",
                    "item": "https://sms4smile.com/quotes/kent-beck/if-i-have-the-same-logic-in-two-places-i-work-with-the-design-to/"
                }
            ],
            "@id": "https://sms4smile.com/quotes/kent-beck/if-i-have-the-same-logic-in-two-places-i-work-with-the-design-to/#breadcrumb"
        },
        {
            "@type": "WebSite",
            "@id": "https://sms4smile.com/quotes/#website",
            "name": "SMS4Smile Quotes",
            "url": "https://sms4smile.com/quotes/",
            "publisher": {
                "@id": "https://sms4smile.com/quotes/#organization"
            }
        },
        {
            "@type": "Organization",
            "@id": "https://sms4smile.com/quotes/#organization",
            "name": "SMS4Smile Quotes",
            "url": "https://sms4smile.com/quotes/",
            "logo": {
                "@type": "ImageObject",
                "url": "https://sms4smile.com/quotes/wp-content/themes/sq/assets/icons/icon-512.png",
                "width": 512,
                "height": 512
            }
        }
    ]
}
```
