---
title: "Meaning & Key Takeaway of: Few practices are as odious as…"
description: "\"“Few practices are as odious as commenting-out code. Don’t do this!”\" — Robert C. Martin"
image: "https://sms4smile.com/quotes/i/e54/robert-c-martin-18499_code_few-practices-are-as-odious-as-commentin_521443.jpg"
---

#  Few practices are as odious as commenting-out code. Don’t…

![“Few practices are as odious as commenting-out code. Don’t do this!” quote by Robert C. Martin](https://sms4smile.com/quotes/i/e54/robert-c-martin-18499_code_few-practices-are-as-odious-as-commentin_521443.jpg)   [Download](https://sms4smile.com/quotes/i/e54/robert-c-martin-18499_code_few-practices-are-as-odious-as-commentin_521443.jpg) [Open image](https://sms4smile.com/quotes/i/e54/robert-c-martin-18499_code_few-practices-are-as-odious-as-commentin_521443.jpg)

> ““Few practices are as odious as commenting-out code. Don’t do this!””

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

## About This Quote

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

Commenting out code is a harmful habit that obscures intent and creates technical debt.

**In simple terms:** Avoid commenting out code; it’s bad practice.

Key Takeaway

Write clean, maintainable code.

Themes

software development best practices technical debt

Mood

critical educational

Type

technical philosophical

When to use this quote

- legacy code
- code reviews

Key Concepts

code hygiene refactoring team collaboration

Questions to Reflect On

- Why do developers comment out code?
- What alternatives exist?

A Different Perspective

Commenting out may be a quick fix but leads to long‑term problems.

★ ★ ★ ★ ★   No ratings yet

[Code](https://sms4smile.com/quotes/about/code/) [Programming](https://sms4smile.com/quotes/about/programming/) [Technology](https://sms4smile.com/quotes/about/technology/)

## Related quotes

> [“The rules of software are the same today as they were in 1946, when Alan Turing wrote the very first code that would execute…](https://sms4smile.com/quotes/robert-c-martin/the-rules-of-software-are-the-same-today-as-they-were-in-1946-when/)

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

> [As treasury secretary, I don't see it as my role commenting on the dollar in short-term movements.](https://sms4smile.com/quotes/steve-mnuchin/as-treasury-secretary-i-don-t-see-it-as-my-role-commenting-on-the/)

[Steve Mnuchin](https://sms4smile.com/quotes/author/steve-mnuchin/)

> [The social media bit is really about documenting process. I like the dialogue if it's constructive, but I'm now at a crossroads. I've accumulated…](https://sms4smile.com/quotes/toyin-odutola/the-social-media-bit-is-really-about-documenting-process-i-like-the/)

[Toyin Odutola](https://sms4smile.com/quotes/author/toyin-odutola/)

> [Half the guys commenting on MS Dhoni can't even tie their shoelaces.](https://sms4smile.com/quotes/ravi-shastri/half-the-guys-commenting-on-ms-dhoni-can-t-even-tie-their-shoelaces/)

[Ravi Shastri](https://sms4smile.com/quotes/author/ravi-shastri/)

> [I guess I've always been drawn to roles that have smart characters commenting on what's happening around them.](https://sms4smile.com/quotes/alia-shawkat/i-guess-i-ve-always-been-drawn-to-roles-that-have-smart-characters/)

[Alia Shawkat](https://sms4smile.com/quotes/author/alia-shawkat/)

> [I'm used to people commenting on my body, even women I have just met.](https://sms4smile.com/quotes/carole-radziwill/i-m-used-to-people-commenting-on-my-body-even-women-i-have-just-met/)

[Carole Radziwill](https://sms4smile.com/quotes/author/carole-radziwill/)

> [People, liking and commenting First to like on a Facebook photo, Really? Will you get a diploma for that? Please Explain, Love You! -Donya…](https://sms4smile.com/quotes/donya-ina-english/people-liking-and-commenting-first-to-like-on-a-facebook-photo-really/)

Donya Ina English

> [Goalkeepers get criticism for commenting on outfield players, but outfield players can comment on goalkeeping; it is not a two-way street.](https://sms4smile.com/quotes/karen-bardsley/goalkeepers-get-criticism-for-commenting-on-outfield-players-but/)

[Karen Bardsley](https://sms4smile.com/quotes/author/karen-bardsley/)

> [An opinion that goes beyond "Cute outfit!" is appreciated. If a person regularly comments and they too have a blog, and we have gotten…](https://sms4smile.com/quotes/susanna-lau/an-opinion-that-goes-beyond-cute-outfit-is-appreciated-if-a-person/)

[Susanna Lau](https://sms4smile.com/quotes/author/susanna-lau/)

> [I have had it with people who are threatening me and my kids and my family over simply commenting on the law and criminal…](https://sms4smile.com/quotes/ashleigh-banfield/i-have-had-it-with-people-who-are-threatening-me-and-my-kids-and-my/)

[Ashleigh Banfield](https://sms4smile.com/quotes/author/ashleigh-banfield/)

> [Sometimes you'll see people give performances in comedy with an ironic detachment where they'll sort of be remarking on the character from outside of…](https://sms4smile.com/quotes/zach-woods/sometimes-you-ll-see-people-give-performances-in-comedy-with-an/)

[Zach Woods](https://sms4smile.com/quotes/author/zach-woods/)

> [People enjoy commenting negatively for the strangest things, but yet can not LIKE or say something NICE about any thing meaningful.](https://sms4smile.com/quotes/nishan-panwar/people-enjoy-commenting-negatively-for-the-strangest-things-but-yet/)

[Nishan Panwar](https://sms4smile.com/quotes/author/nishan-panwar/)

> [“Once I got nutrition right, people started commenting on how good I looked for my age!”](https://sms4smile.com/quotes/steven-magee/once-i-got-nutrition-right-people-started-commenting-on-how-good-i/)

[Steven Magee](https://sms4smile.com/quotes/author/steven-magee/)

> [Infact what's the option comment for, or what does the word comment mean? Or there are people who are restricted in commenting in your…](https://sms4smile.com/quotes/simie/infact-what-s-the-option-comment-for-or-what-does-the-word-comment/)

[Simie](https://sms4smile.com/quotes/author/simie/)

> [When I was a kid, we all knew who Niki Lauda was. He was a hero, a living legend in Germany. Everybody knows him.…](https://sms4smile.com/quotes/daniel-bruhl/when-i-was-a-kid-we-all-knew-who-niki-lauda-was-he-was-a-hero-a/)

[Daniel Bruhl](https://sms4smile.com/quotes/author/daniel-bruhl/)

## More by Robert C. Martin

> [“The rules of software are the same today as they were in 1946, when Alan Turing wrote the very first code that would execute…](https://sms4smile.com/quotes/robert-c-martin/the-rules-of-software-are-the-same-today-as-they-were-in-1946-when/)

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

> [“Just as the Hare was overconfident in its speed, so the developers are overconfident in their ability to remain productive.”](https://sms4smile.com/quotes/robert-c-martin/just-as-the-hare-was-overconfident-in-its-speed-so-the-developers-are/)

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

> [“How can we make sure we wind up behind the right door when the going gets tough? The answer is: craftsmanship.”](https://sms4smile.com/quotes/robert-c-martin/how-can-we-make-sure-we-wind-up-behind-the-right-door-when-the-going/)

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

> [“The problem that Dijkstra recognized, early on, was that programming is hard, and that programmers don’t do it very well.”](https://sms4smile.com/quotes/robert-c-martin/the-problem-that-dijkstra-recognized-early-on-was-that-programming-is/)

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

> [“Remember that code is really the language in which we ultimately express the requirements. We may create languages that are closer to the requirements.…](https://sms4smile.com/quotes/robert-c-martin/remember-that-code-is-really-the-language-in-which-we-ultimately/)

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

> [“When you are working on a problem, you sometimes get so close to it that you can’t see all the options. You miss elegant…](https://sms4smile.com/quotes/robert-c-martin/when-you-are-working-on-a-problem-you-sometimes-get-so-close-to-it/)

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

> [“The majority of the cost of a software project is in long-term maintenance.”](https://sms4smile.com/quotes/robert-c-martin/the-majority-of-the-cost-of-a-software-project-is-in-long-term/)

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

> [“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/)

> [“So if you want to go fast, if you want to get done quickly, if you want your code to be easy to write,…](https://sms4smile.com/quotes/robert-c-martin/so-if-you-want-to-go-fast-if-you-want-to-get-done-quickly-if-you-want/)

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

> [“Refactoring is a lot like solving a Rubik’s cube. There are lots of little steps required to achieve a large goal. Each step enables…](https://sms4smile.com/quotes/robert-c-martin/refactoring-is-a-lot-like-solving-a-rubik-s-cube-there-are-lots-of/)

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

> [“Slaves are not allowed to say no. Laborers may be hesitant to say no. But professionals are expected to say no. Indeed, good managers…](https://sms4smile.com/quotes/robert-c-martin/slaves-are-not-allowed-to-say-no-laborers-may-be-hesitant-to-say-no/)

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

> [“Abstraction is the elimination of the irrelevant and the amplification of the essential.”](https://sms4smile.com/quotes/robert-c-martin/abstraction-is-the-elimination-of-the-irrelevant-and-the/)

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

> [“You see, programmers tend to be arrogant, self-absorbed introverts. We didn’t get into this business because we like people. Most of us got into…](https://sms4smile.com/quotes/robert-c-martin/you-see-programmers-tend-to-be-arrogant-self-absorbed-introverts-we/)

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

> [“Truth can only be found in one place: the code.”](https://sms4smile.com/quotes/robert-c-martin/truth-can-only-be-found-in-one-place-the-code/)

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

> [“Writing clean code is what you must do in order to call yourself a professional. There is no reasonable excuse for doing anything less…](https://sms4smile.com/quotes/robert-c-martin/writing-clean-code-is-what-you-must-do-in-order-to-call-yourself-a/)

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

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

## 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": "“Few practices are as odious as commenting-out code. Don’t do this!”",
            "creator": {
                "@type": "Person",
                "name": "Robert C. Martin"
            },
            "isPartOf": {
                "@id": "https://sms4smile.com/quotes/#website"
            },
            "url": "https://sms4smile.com/quotes/robert-c-martin/few-practices-are-as-odious-as-commenting-out-code-don-t-do-this/",
            "about": {
                "@type": "Thing",
                "name": "Code"
            },
            "@id": "https://sms4smile.com/quotes/robert-c-martin/few-practices-are-as-odious-as-commenting-out-code-don-t-do-this/#quotation",
            "image": {
                "@type": "ImageObject",
                "@id": "https://sms4smile.com/quotes/i/e54/robert-c-martin-18499_code_few-practices-are-as-odious-as-commentin_521443.jpg",
                "contentUrl": "https://sms4smile.com/quotes/i/e54/robert-c-martin-18499_code_few-practices-are-as-odious-as-commentin_521443.jpg",
                "url": "https://sms4smile.com/quotes/i/e54/robert-c-martin-18499_code_few-practices-are-as-odious-as-commentin_521443.jpg",
                "width": 1080,
                "height": 1080,
                "caption": "“Few practices are as odious as commenting-out code. Don’t do this!” — Robert C. Martin",
                "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": "Robert C. Martin",
                    "item": "https://sms4smile.com/quotes/author/robert-c-martin/"
                },
                {
                    "@type": "ListItem",
                    "position": 4,
                    "name": "“Few practices are as odious as...",
                    "item": "https://sms4smile.com/quotes/robert-c-martin/few-practices-are-as-odious-as-commenting-out-code-don-t-do-this/"
                }
            ],
            "@id": "https://sms4smile.com/quotes/robert-c-martin/few-practices-are-as-odious-as-commenting-out-code-don-t-do-this/#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
            }
        }
    ]
}
```
