---
title: "Meaning & Key Takeaway of: When debugging, novices insert corrective…"
description: "\"When debugging, novices insert corrective code; experts remove defective code.\" — Richard E. Pattis"
image: "https://sms4smile.com/quotes/i/217/richard-e-pattis-41876_code_when-debugging-novices-insert-corrective_1532880.png"
---

#  When debugging, novices insert corrective code; experts…

![“When debugging, novices insert corrective code; experts remove defective code.” quote by Richard E. Pattis](https://sms4smile.com/quotes/i/217/richard-e-pattis-41876_code_when-debugging-novices-insert-corrective_1532880.png)   [Download](https://sms4smile.com/quotes/i/217/richard-e-pattis-41876_code_when-debugging-novices-insert-corrective_1532880.png) [Open image](https://sms4smile.com/quotes/i/217/richard-e-pattis-41876_code_when-debugging-novices-insert-corrective_1532880.png)

> “When debugging, novices insert corrective code; experts remove defective code.”

[Richard E. Pattis](https://sms4smile.com/quotes/author/richard-e-pattis/)

## About This Quote

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

Novices add code to fix bugs; experts remove faulty code, emphasizing removal over addition.

**In simple terms:** Fix by deleting bad code.

Key Takeaway

Prefer removing errors to adding patches.

Themes

debugging software engineering problem solving efficiency

Mood

analytical practical

Type

technical educational

When to use this quote

- software development
- IT support
- education

Key Concepts

computer science systems design best practices

Questions to Reflect On

- When should you refactor instead of patch?
- How does removal improve code quality?

A Different Perspective

Adding patches can create more bugs.

★ ★ ★ ★ ★   No ratings yet

[Code](https://sms4smile.com/quotes/about/code/) [Computer](https://sms4smile.com/quotes/about/computer/) [Computer language](https://sms4smile.com/quotes/about/computer-language/) [Computer programmers](https://sms4smile.com/quotes/about/computer-programmers/) [Computer programming](https://sms4smile.com/quotes/about/computer-programming/) [Computer science](https://sms4smile.com/quotes/about/computer-science/) [Debugging](https://sms4smile.com/quotes/about/debugging/) [Developers](https://sms4smile.com/quotes/about/developers/) [Experts](https://sms4smile.com/quotes/about/experts/) [Programmers](https://sms4smile.com/quotes/about/programmers/) [Programming](https://sms4smile.com/quotes/about/programming/) [Programming languages](https://sms4smile.com/quotes/about/programming-languages/) [Quality](https://sms4smile.com/quotes/about/quality/) [Software](https://sms4smile.com/quotes/about/software/) [Software design](https://sms4smile.com/quotes/about/software-design/) [Software development](https://sms4smile.com/quotes/about/software-development/) [Software engineering](https://sms4smile.com/quotes/about/software-engineering/) [Technology](https://sms4smile.com/quotes/about/technology/)

## Related quotes

> [Premature optimization is the root of all evil in programming.](https://sms4smile.com/quotes/tony-hoare/premature-optimization-is-the-root-of-all-evil-in-programming/)

[Tony Hoare](https://sms4smile.com/quotes/author/tony-hoare/)

> [Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you…](https://sms4smile.com/quotes/brian-kernighan/debugging-is-twice-as-hard-as-writing-the-code-in-the-first-place/)

[Brian Kernighan](https://sms4smile.com/quotes/author/brian-kernighan/)

> [We should forget about small efficiencies, say about 97% of the time: premature optimization is the root of all evil.](https://sms4smile.com/quotes/anonymous/we-should-forget-about-small-efficiencies-say-about-97-of-the-time-2/)

[Anonymous](https://sms4smile.com/quotes/author/anonymous/)

> [The three most important aspects of debugging and real estate are the same: Location, Location, and Location.](https://sms4smile.com/quotes/richard-e-pattis/the-three-most-important-aspects-of-debugging-and-real-estate-are-the/)

[Richard E. Pattis](https://sms4smile.com/quotes/author/richard-e-pattis/)

> [If you want more effective programmers, you will discover that they should not waste their time debugging, they should not introduce the bugs to…](https://sms4smile.com/quotes/edsger-dijkstra/if-you-want-more-effective-programmers-you-will-discover-that-they/)

[Edsger Dijkstra](https://sms4smile.com/quotes/author/edsger-dijkstra/)

> [Programmers waste enormous amounts of time thinking about, or worrying about, the speed of noncritical parts of their programs, and these attempts at efficiency…](https://sms4smile.com/quotes/donald-knuth/programmers-waste-enormous-amounts-of-time-thinking-about-or-worrying/)

[Donald Knuth](https://sms4smile.com/quotes/author/donald-knuth/)

> [Rushing to optimize before the bottlenecks are known may be the only error to have ruined more designs than feature creep. From tortured code…](https://sms4smile.com/quotes/eric-s-raymond/rushing-to-optimize-before-the-bottlenecks-are-known-may-be-the-only/)

[Eric S. Raymond](https://sms4smile.com/quotes/author/eric-s-raymond/)

> [There has never been an unexpectedly short debugging period in the history of computers.](https://sms4smile.com/quotes/steven-levy/there-has-never-been-an-unexpectedly-short-debugging-period-in-the/)

[Steven Levy](https://sms4smile.com/quotes/author/steven-levy/)

> [We should forget about small efficiencies, say about 97% of the time: premature optimization is the root of all evil. Yet we should not…](https://sms4smile.com/quotes/donald-knuth/we-should-forget-about-small-efficiencies-say-about-97-of-the-time/)

[Donald Knuth](https://sms4smile.com/quotes/author/donald-knuth/)

> [Testing proves a programmer’s failure. Debugging is the programmer’s vindication.](https://sms4smile.com/quotes/boris-beizer/testing-proves-a-programmer-s-failure-debugging-is-the-programmer-s/)

[Boris Beizer](https://sms4smile.com/quotes/author/boris-beizer/)

> [The most frequent complaint is that it's hard. True. it's a hard game to win Also, many people ask me how to use the…](https://sms4smile.com/quotes/graham-nelson/the-most-frequent-complaint-is-that-it-s-hard-true-it-s-a-hard-game/)

[Graham Nelson](https://sms4smile.com/quotes/author/graham-nelson/)

> [As soon as we started programming, we found to our surprise that it wasn't as easy to get programs right as we had thought.…](https://sms4smile.com/quotes/maurice-wilkes/as-soon-as-we-started-programming-we-found-to-our-surprise-that-it/)

[Maurice Wilkes](https://sms4smile.com/quotes/author/maurice-wilkes/)

> [If debugging is the process of removing bugs, then programming must be the one to put them in](https://sms4smile.com/quotes/arshad-feeroz/if-debugging-is-the-process-of-removing-bugs-then-programming-must-be/)

Arshad Feeroz

> [The process of debugging, going an correcting the program and then looking at the behavior, and then correcting it again, and finally iteratively getting…](https://sms4smile.com/quotes/nicholas-negroponte/the-process-of-debugging-going-an-correcting-the-program-and-then/)

[Nicholas Negroponte](https://sms4smile.com/quotes/author/nicholas-negroponte/)

> [Building technical systems involves a lot of hard work and specialized knowledge: languages and protocols, coding and debugging, testing and refactoring.](https://sms4smile.com/quotes/jesse-james-garrett/building-technical-systems-involves-a-lot-of-hard-work-and/)

[Jesse James Garrett](https://sms4smile.com/quotes/author/jesse-james-garrett/)

## More by Richard E. Pattis

> [If you cannot grok the overall structure of a program while taking a shower, you are not ready to code it.](https://sms4smile.com/quotes/richard-e-pattis/if-you-cannot-grok-the-overall-structure-of-a-program-while-taking-a/)

[Richard E. Pattis](https://sms4smile.com/quotes/author/richard-e-pattis/)

> [Programming languages, like pizzas, come in only too sizes; too big and too small.](https://sms4smile.com/quotes/richard-e-pattis/programming-languages-like-pizzas-come-in-only-too-sizes-too-big-and/)

[Richard E. Pattis](https://sms4smile.com/quotes/author/richard-e-pattis/)

> [Code should run as fast as necessary, but no faster; something important is always traded away to increase speed.](https://sms4smile.com/quotes/richard-e-pattis/code-should-run-as-fast-as-necessary-but-no-faster-something/)

[Richard E. Pattis](https://sms4smile.com/quotes/author/richard-e-pattis/)

> [When building a complex system, having crackerjack programmers (who can make any design work, even a bad one) can be a liability. The result,…](https://sms4smile.com/quotes/richard-e-pattis/when-building-a-complex-system-having-crackerjack-programmers-who-can/)

[Richard E. Pattis](https://sms4smile.com/quotes/author/richard-e-pattis/)

> [A class, in Java, is where we teach objects how to behave.](https://sms4smile.com/quotes/richard-e-pattis/a-class-in-java-is-where-we-teach-objects-how-to-behave/)

[Richard E. Pattis](https://sms4smile.com/quotes/author/richard-e-pattis/)

> [The discipline of programming is most like sorcery. Both use precise language to instruct inanimate objects to do our bidding. Small mistakes in programs…](https://sms4smile.com/quotes/richard-e-pattis/the-discipline-of-programming-is-most-like-sorcery-both-use-precise/)

[Richard E. Pattis](https://sms4smile.com/quotes/author/richard-e-pattis/)

> [When teaching a rapidly changing technology, perspective is more important than content.](https://sms4smile.com/quotes/richard-e-pattis/when-teaching-a-rapidly-changing-technology-perspective-is-more/)

[Richard E. Pattis](https://sms4smile.com/quotes/author/richard-e-pattis/)

> [The structure of a software system provides the ecology in which code is born, matures, and dies. A well-designed habitat allows for the successful…](https://sms4smile.com/quotes/richard-e-pattis/the-structure-of-a-software-system-provides-the-ecology-in-which-code/)

[Richard E. Pattis](https://sms4smile.com/quotes/author/richard-e-pattis/)

> [The three most important aspects of debugging and real estate are the same: Location, Location, and Location.](https://sms4smile.com/quotes/richard-e-pattis/the-three-most-important-aspects-of-debugging-and-real-estate-are-the/)

[Richard E. Pattis](https://sms4smile.com/quotes/author/richard-e-pattis/)

[Explore all 10 Richard E. Pattis quotes ](https://sms4smile.com/quotes/author/richard-e-pattis/)

## More Code quotes

> [At the deepest level, all living things that have ever been looked at have the same DNA code. And many of the same genes.](https://sms4smile.com/quotes/richard-dawkins/at-the-deepest-level-all-living-things-that-have-ever-been-looked-at/)

[Richard Dawkins](https://sms4smile.com/quotes/author/richard-dawkins/)

> [It is no secret that I have read 'The Da Vinci Code' several times. I genuinely believe that 'The Da Vinci Code' and 'Angels…](https://sms4smile.com/quotes/ashwin-sanghi/it-is-no-secret-that-i-have-read-the-da-vinci-code-several-times-i/)

[Ashwin Sanghi](https://sms4smile.com/quotes/author/ashwin-sanghi/)

> [Programmers are always surrounded by complexity; we cannot avoid it… If our basic tool, the language in which we design and code our programs,…](https://sms4smile.com/quotes/tony-hoare/programmers-are-always-surrounded-by-complexity-we-cannot-avoid-it-if/)

[Tony Hoare](https://sms4smile.com/quotes/author/tony-hoare/)

> [One of my most productive days was throwing away 1,000 lines of code.](https://sms4smile.com/quotes/ken-thompson/one-of-my-most-productive-days-was-throwing-away-1-000-lines-of-code/)

[Ken Thompson](https://sms4smile.com/quotes/author/ken-thompson/)

> [Writing code means always having to say you're sorry.](https://sms4smile.com/quotes/paul-ford/writing-code-means-always-having-to-say-you-re-sorry/)

[Paul Ford](https://sms4smile.com/quotes/author/paul-ford/)

> [It would be a piece of ingenuousness to accuse the man of today of his lack of moral code. The accusation would leave him…](https://sms4smile.com/quotes/jose-ortega-y-gasset/it-would-be-a-piece-of-ingenuousness-to-accuse-the-man-of-today-of/)

[Jose Ortega y Gasset](https://sms4smile.com/quotes/author/jose-ortega-y-gasset/)

> [I loved 'Chicago Code;' I watched that a lot. It was great because it really captured the city - I'm from Chicago, too.](https://sms4smile.com/quotes/jessy-schram/i-loved-chicago-code-i-watched-that-a-lot-it-was-great-because-it/)

[Jessy Schram](https://sms4smile.com/quotes/author/jessy-schram/)

> [I kind of pride myself on coming onto things that are well-oiled machines and finding a way to bring what I bring and fit…](https://sms4smile.com/quotes/rob-lowe/i-kind-of-pride-myself-on-coming-onto-things-that-are-well-oiled/)

[Rob Lowe](https://sms4smile.com/quotes/author/rob-lowe/)

> [When we're done simplifying the tax code, getting the lobbyist carve outs our of the tax code, lowering our rates and letting people have…](https://sms4smile.com/quotes/paul-ryan/when-we-re-done-simplifying-the-tax-code-getting-the-lobbyist-carve/)

[Paul Ryan](https://sms4smile.com/quotes/author/paul-ryan/)

> [The tax code is 10 times the size of the Bible with none of the good news.](https://sms4smile.com/quotes/paul-ryan/the-tax-code-is-10-times-the-size-of-the-bible-with-none-of-the-good/)

[Paul Ryan](https://sms4smile.com/quotes/author/paul-ryan/)

> [The Cheney team had, for example, technological supremacy over the National Security Council staff. That is to say, they could read their e-mails. I…](https://sms4smile.com/quotes/lawrence-wilkerson/the-cheney-team-had-for-example-technological-supremacy-over-the/)

[Lawrence Wilkerson](https://sms4smile.com/quotes/author/lawrence-wilkerson/)

> [ \[T\]he tax code has been piling up, year after year, a symbol of everything gone wrong in America, of arrogant rulers and lost freedom,… ](https://sms4smile.com/quotes/dick-armey/t-he-tax-code-has-been-piling-up-year-after-year-a-symbol-of/)

[Dick Armey](https://sms4smile.com/quotes/author/dick-armey/)

> [In open source, you really have to be near the watershed to have an impact on the source code. Customers want to be near…](https://sms4smile.com/quotes/peter-fenton/in-open-source-you-really-have-to-be-near-the-watershed-to-have-an/)

[Peter Fenton](https://sms4smile.com/quotes/author/peter-fenton/)

> [We can use our art to become political, to become something you want to talk about. We make clothes, but we have the chance…](https://sms4smile.com/quotes/olivier-rousteing/we-can-use-our-art-to-become-political-to-become-something-you-want/)

[Olivier Rousteing](https://sms4smile.com/quotes/author/olivier-rousteing/)

> [Your zip code or your income level should not dictate your access to healthy drinking water.](https://sms4smile.com/quotes/alex-padilla/your-zip-code-or-your-income-level-should-not-dictate-your-access-to/)

[Alex Padilla](https://sms4smile.com/quotes/author/alex-padilla/)

[Browse all 1,662 Code quotes ](https://sms4smile.com/quotes/about/code/)

```json
{
    "@context": "https://schema.org",
    "@graph": [
        {
            "@type": "Quotation",
            "text": "When debugging, novices insert corrective code; experts remove defective code.",
            "creator": {
                "@type": "Person",
                "name": "Richard E. Pattis"
            },
            "isPartOf": {
                "@id": "https://sms4smile.com/quotes/#website"
            },
            "url": "https://sms4smile.com/quotes/richard-e-pattis/when-debugging-novices-insert-corrective-code-experts-remove/",
            "about": {
                "@type": "Thing",
                "name": "Code"
            },
            "@id": "https://sms4smile.com/quotes/richard-e-pattis/when-debugging-novices-insert-corrective-code-experts-remove/#quotation",
            "image": {
                "@type": "ImageObject",
                "@id": "https://sms4smile.com/quotes/i/217/richard-e-pattis-41876_code_when-debugging-novices-insert-corrective_1532880.png",
                "contentUrl": "https://sms4smile.com/quotes/i/217/richard-e-pattis-41876_code_when-debugging-novices-insert-corrective_1532880.png",
                "url": "https://sms4smile.com/quotes/i/217/richard-e-pattis-41876_code_when-debugging-novices-insert-corrective_1532880.png",
                "width": 1080,
                "height": 1080,
                "caption": "“When debugging, novices insert corrective code; experts remove defective code.” — Richard E. Pattis",
                "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": "Richard E. Pattis",
                    "item": "https://sms4smile.com/quotes/author/richard-e-pattis/"
                },
                {
                    "@type": "ListItem",
                    "position": 4,
                    "name": "When debugging, novices insert corrective code;...",
                    "item": "https://sms4smile.com/quotes/richard-e-pattis/when-debugging-novices-insert-corrective-code-experts-remove/"
                }
            ],
            "@id": "https://sms4smile.com/quotes/richard-e-pattis/when-debugging-novices-insert-corrective-code-experts-remove/#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
            }
        }
    ]
}
```
