---
title: "Meaning & Key Takeaway of: Good code is its own best documentation…"
description: "\"Good code is its own best documentation. As you're about to add a comment, ask yourself, \"How can I improve the code so that this comment isn't needed?..."
image: "https://sms4smile.com/quotes/i/090/steve-mcconnell-11957_add_good-code-is-its-own-best-documentation_2138209.png"
---

#  Good code is its own best documentation. As you're about…

![“Good code is its own best documentation. As you're about to add a comment, ask yourself, &quot;How can I improve the code so that this comment isn't needed?&quot; Improve the code and then document it to make it even clearer.” quote by Steve McConnell](https://sms4smile.com/quotes/i/090/steve-mcconnell-11957_add_good-code-is-its-own-best-documentation_2138209.png)   [Download](https://sms4smile.com/quotes/i/090/steve-mcconnell-11957_add_good-code-is-its-own-best-documentation_2138209.png) [Open image](https://sms4smile.com/quotes/i/090/steve-mcconnell-11957_add_good-code-is-its-own-best-documentation_2138209.png)

> “Good code is its own best documentation. As you're about to add a comment, ask yourself, "How can I improve the code so that this comment isn't needed?" Improve the code and then document it to make it even clearer.”

[Steve McConnell](https://sms4smile.com/quotes/author/steve-mcconnell/)

## About This Quote

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

Code should be clear enough that comments are unnecessary; clarity reduces reliance on external explanations.

**In simple terms:** Write clear code, not just comments.

Key Takeaway

Make code self‑explanatory before adding comments.

Themes

software engineering clarity documentation best practices

Mood

focused analytical

Type

advice instructional

When to use this quote

- code reviews
- pair programming
- maintenance
- onboarding

Key Concepts

clean code self‑documenting code refactoring

Questions to Reflect On

- How can you simplify this function?
- When is a comment truly essential?

A Different Perspective

Complex logic may still need brief notes for future readers.

★ ★ ★ ★ ★   No ratings yet

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

## Related quotes

> [Good code is its own best documentation.](https://sms4smile.com/quotes/steve-mcconnell/good-code-is-its-own-best-documentation/)

[Steve McConnell](https://sms4smile.com/quotes/author/steve-mcconnell/)

> [Little else matters than to write good code.](https://sms4smile.com/quotes/karl-lehenbauer/little-else-matters-than-to-write-good-code/)

[Karl Lehenbauer](https://sms4smile.com/quotes/author/karl-lehenbauer/)

> [More good code has been written in languages denounced as "bad'' than in languages proclaimed "wonderful'' - much more.](https://sms4smile.com/quotes/bjarne-stroustrup/more-good-code-has-been-written-in-languages-denounced-as-bad-than-in/)

[Bjarne Stroustrup](https://sms4smile.com/quotes/author/bjarne-stroustrup/)

> [Always think about how a piece of code should be used: good interfaces are the essence of good code. You can hide all kinds…](https://sms4smile.com/quotes/bjarne-stroustrup/always-think-about-how-a-piece-of-code-should-be-used-good-interfaces/)

[Bjarne Stroustrup](https://sms4smile.com/quotes/author/bjarne-stroustrup/)

> [In the face of entropy and nothingness, you kind of have to pretend it's not there if you want to keep writing good code.](https://sms4smile.com/quotes/karl-lehenbauer/in-the-face-of-entropy-and-nothingness-you-kind-of-have-to-pretend-it/)

[Karl Lehenbauer](https://sms4smile.com/quotes/author/karl-lehenbauer/)

> [“A non-programmer friend once remarked that code looks like poetry. I get that feeling from really good code, that everything in the text has…](https://sms4smile.com/quotes/kevlin-henney/a-non-programmer-friend-once-remarked-that-code-looks-like-poetry-i/)

Kevlin Henney

> [I used to be a computer engineer, and I can make really good code, and we can make systems that work really well, and…](https://sms4smile.com/quotes/travis-kalanick/i-used-to-be-a-computer-engineer-and-i-can-make-really-good-code-and/)

[Travis Kalanick](https://sms4smile.com/quotes/author/travis-kalanick/)

> [“Python is good enough for code that only has to respond to a single user at human speed, but not usually for code that…](https://sms4smile.com/quotes/anonymous/python-is-good-enough-for-code-that-only-has-to-respond-to-a-single/)

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

> [Our reasons for believing Jesus existed and also that He was who He claimed to be - the God who came down - are…](https://sms4smile.com/quotes/greg-koukl/our-reasons-for-believing-jesus-existed-and-also-that-he-was-who-he/)

[Greg Koukl](https://sms4smile.com/quotes/author/greg-koukl/)

> [Nowhere are prejudices more mistaken for truth, passion for reason and invective for documentation than in politics.](https://sms4smile.com/quotes/john-mason-brown/nowhere-are-prejudices-more-mistaken-for-truth-passion-for-reason-and/)

[John Mason Brown](https://sms4smile.com/quotes/author/john-mason-brown/)

> [I think that people are constantly thinking about capturing things that they're not actually present for the moment they're trying to capture. I'm quite…](https://sms4smile.com/quotes/ian-mackaye/i-think-that-people-are-constantly-thinking-about-capturing-things/)

[Ian MacKaye](https://sms4smile.com/quotes/author/ian-mackaye/)

> [There is a book called San Francisco Tape Music Centre:1960s Counterculture and the Avant-Garde and this book describes everything that you want to know…](https://sms4smile.com/quotes/pauline-oliveros/there-is-a-book-called-san-francisco-tape-music-centre-1960s/)

[Pauline Oliveros](https://sms4smile.com/quotes/author/pauline-oliveros/)

> [The obsessive documentation is itself adjacent to hyper-consumption in our society. The desire to just have everything all the time and adjacent to that…](https://sms4smile.com/quotes/ted-leo/the-obsessive-documentation-is-itself-adjacent-to-hyper-consumption/)

[Ted Leo](https://sms4smile.com/quotes/author/ted-leo/)

> [Developing fewer features allows you to conserve development resources and spend more time refining those features that users really need. Fewer features mean fewer…](https://sms4smile.com/quotes/jakob-nielsen/developing-fewer-features-allows-you-to-conserve-development/)

[Jakob Nielsen](https://sms4smile.com/quotes/author/jakob-nielsen/)

> [Once you realize that documentation should be laughed at, peed upon, put on fire, and just ridiculed in general, then, and only then, have…](https://sms4smile.com/quotes/linus-torvalds/once-you-realize-that-documentation-should-be-laughed-at-peed-upon/)

[Linus Torvalds](https://sms4smile.com/quotes/author/linus-torvalds/)

## More by Steve McConnell

> [“it's done by creating 25 times as many dirty tests”](https://sms4smile.com/quotes/steve-mcconnell/it-s-done-by-creating-25-times-as-many-dirty-tests/)

[Steve McConnell](https://sms4smile.com/quotes/author/steve-mcconnell/)

> [... programming requires more concentration than other activities. It's the reason programmers get upset about 'quick interruptions' - such interruptions are tantamount to asking…](https://sms4smile.com/quotes/steve-mcconnell/programming-requires-more-concentration-than-other-activities-it-s/)

[Steve McConnell](https://sms4smile.com/quotes/author/steve-mcconnell/)

> [The job of the average manager requires a shift in focus every few minutes. The job of the average software developer requires that the…](https://sms4smile.com/quotes/steve-mcconnell/the-job-of-the-average-manager-requires-a-shift-in-focus-every-few/)

[Steve McConnell](https://sms4smile.com/quotes/author/steve-mcconnell/)

> [“the road to programming hell is paved with global variables,”](https://sms4smile.com/quotes/steve-mcconnell/the-road-to-programming-hell-is-paved-with-global-variables/)

[Steve McConnell](https://sms4smile.com/quotes/author/steve-mcconnell/)

> [“usually more time is spent in making good-looking presentation slides than in improving the quality of the software.”](https://sms4smile.com/quotes/steve-mcconnell/usually-more-time-is-spent-in-making-good-looking-presentation-slides/)

[Steve McConnell](https://sms4smile.com/quotes/author/steve-mcconnell/)

> [It's hard enough to find an error in your code when you're looking for it; it's even harder when you've assumed your code is…](https://sms4smile.com/quotes/steve-mcconnell/it-s-hard-enough-to-find-an-error-in-your-code-when-you-re-looking/)

[Steve McConnell](https://sms4smile.com/quotes/author/steve-mcconnell/)

> [“the error rate in manual testing is comparable to the bug rate in the code being tested.”](https://sms4smile.com/quotes/steve-mcconnell/the-error-rate-in-manual-testing-is-comparable-to-the-bug-rate-in-the/)

[Steve McConnell](https://sms4smile.com/quotes/author/steve-mcconnell/)

> [“few people can understand more than three levels of nested ifs”](https://sms4smile.com/quotes/steve-mcconnell/few-people-can-understand-more-than-three-levels-of-nested-ifs/)

[Steve McConnell](https://sms4smile.com/quotes/author/steve-mcconnell/)

> [ “\[...\] you shouldn't be uneasy about any parts of the architecture. It shouldn't contain anything just to please the boss. It shouldn't contain anything… ](https://sms4smile.com/quotes/steve-mcconnell/you-shouldn-t-be-uneasy-about-any-parts-of-the-architecture-it/)

[Steve McConnell](https://sms4smile.com/quotes/author/steve-mcconnell/)

> [It's OK to figure out murder mysteries, but you shouldn't need to figure out code. You should be able to read it.](https://sms4smile.com/quotes/steve-mcconnell/it-s-ok-to-figure-out-murder-mysteries-but-you-shouldn-t-need-to/)

[Steve McConnell](https://sms4smile.com/quotes/author/steve-mcconnell/)

> [“Programmers working with high-level languages achieve better productivity and quality than those working with lower-level languages. Languages such as C++, Java, Smalltalk, and Visual…](https://sms4smile.com/quotes/steve-mcconnell/programmers-working-with-high-level-languages-achieve-better/)

[Steve McConnell](https://sms4smile.com/quotes/author/steve-mcconnell/)

> [The trouble with quick and dirty is that dirty remains long after quick has been forgotten.](https://sms4smile.com/quotes/steve-mcconnell/the-trouble-with-quick-and-dirty-is-that-dirty-remains-long-after/)

[Steve McConnell](https://sms4smile.com/quotes/author/steve-mcconnell/)

> [“Be sure that the names you choose favor read-time convenience over write-time convenience.”](https://sms4smile.com/quotes/steve-mcconnell/be-sure-that-the-names-you-choose-favor-read-time-convenience-over/)

[Steve McConnell](https://sms4smile.com/quotes/author/steve-mcconnell/)

> [Even when you have skilled, motivated, hard-working people, the wrong team structure can undercut their efforts instead of catapulting them to success. A poor…](https://sms4smile.com/quotes/steve-mcconnell/even-when-you-have-skilled-motivated-hard-working-people-the-wrong/)

[Steve McConnell](https://sms4smile.com/quotes/author/steve-mcconnell/)

> [A typical software project can present more opportunities to learn from mistakes than some people get in a lifetime.](https://sms4smile.com/quotes/steve-mcconnell/a-typical-software-project-can-present-more-opportunities-to-learn/)

[Steve McConnell](https://sms4smile.com/quotes/author/steve-mcconnell/)

[Explore all 57 Steve McConnell quotes ](https://sms4smile.com/quotes/author/steve-mcconnell/)

## More Add quotes

> [Most marriages don't add two people together. They subtract one from the other.](https://sms4smile.com/quotes/ian-fleming/most-marriages-don-t-add-two-people-together-they-subtract-one-from/)

[Ian Fleming](https://sms4smile.com/quotes/author/ian-fleming/)

> [Friendship, "the wine of life," should, like a well-stocked cellar, be continually renewed; and it is consolatory to think, that although we can seldom…](https://sms4smile.com/quotes/james-boswell/friendship-the-wine-of-life-should-like-a-well-stocked-cellar-be/)

[James Boswell](https://sms4smile.com/quotes/author/james-boswell/)

> [Life as we know it is fundamentally unsatisfying. I think most folks feel this to be true. They know that a life of aimless…](https://sms4smile.com/quotes/michael-yates/life-as-we-know-it-is-fundamentally-unsatisfying-i-think-most-folks/)

[Michael Yates](https://sms4smile.com/quotes/author/michael-yates/)

> [Give me a platter of choice finnan haddie, freshly cooked in its bath of water and milk, add melted butter, a slice or two…](https://sms4smile.com/quotes/craig-claiborne/give-me-a-platter-of-choice-finnan-haddie-freshly-cooked-in-its-bath/)

[Craig Claiborne](https://sms4smile.com/quotes/author/craig-claiborne/)

> [Writing adds up to the conscience of our times.](https://sms4smile.com/quotes/martin-firrell/writing-adds-up-to-the-conscience-of-our-times/)

[Martin Firrell](https://sms4smile.com/quotes/author/martin-firrell/)

> [A 'modern' man has nothing to add to modernism, if only because he has nothing to oppose it with. The well-adapted drop off the…](https://sms4smile.com/quotes/elias-canetti/a-modern-man-has-nothing-to-add-to-modernism-if-only-because-he-has/)

[Elias Canetti](https://sms4smile.com/quotes/author/elias-canetti/)

> [Observation and theory get on best when they are mixed together, both helping one another in the pursuit of truth. It is a good…](https://sms4smile.com/quotes/arthur-eddington/observation-and-theory-get-on-best-when-they-are-mixed-together-both/)

[Arthur Eddington](https://sms4smile.com/quotes/author/arthur-eddington/)

> [I may add that we have more than once stated our willingness to conclude nonaggression pacts with the states neighboring our own!](https://sms4smile.com/quotes/adolf-hitler/i-may-add-that-we-have-more-than-once-stated-our-willingness-to/)

[Adolf Hitler](https://sms4smile.com/quotes/author/adolf-hitler/)

> [The American Constitution declares 'All men are born equal.' The British Socialist Party add: 'All men must be kept equal'.](https://sms4smile.com/quotes/winston-churchill/the-american-constitution-declares-all-men-are-born-equal-the-british/)

[Winston Churchill](https://sms4smile.com/quotes/author/winston-churchill/)

> [New generations of humans inherit the acquired discoveries of generations past, allowing cosmic insight to accumulate without limit. Each discovery of science therefore adds…](https://sms4smile.com/quotes/neil-degrasse-tyson/new-generations-of-humans-inherit-the-acquired-discoveries-of/)

[Neil deGrasse Tyson](https://sms4smile.com/quotes/author/neil-degrasse-tyson/)

> [Thirty days is just about the right amount of time to add a new habit or subtract a habit - like watching the news…](https://sms4smile.com/quotes/matt-cutts/thirty-days-is-just-about-the-right-amount-of-time-to-add-a-new-habit/)

[Matt Cutts](https://sms4smile.com/quotes/author/matt-cutts/)

> [In presenting a mathematical argument the great thing is to give the educated reader the chance to catch on at once to the momentary…](https://sms4smile.com/quotes/john-edensor-littlewood/in-presenting-a-mathematical-argument-the-great-thing-is-to-give-the/)

[John Edensor Littlewood](https://sms4smile.com/quotes/author/john-edensor-littlewood/)

> [The Greeks said grandly in their tragic phrase, 'Let no one be called happy till his death;' to which I would add, 'Let no…](https://sms4smile.com/quotes/elizabeth-barrett-browning/the-greeks-said-grandly-in-their-tragic-phrase-let-no-one-be-called/)

[Elizabeth Barrett Browning](https://sms4smile.com/quotes/author/elizabeth-barrett-browning/)

> [Mostly we just add to the piles of rainbow glass that's been blown off the exteriors of the cany-colored buildings.](https://sms4smile.com/quotes/suzanne-collins/mostly-we-just-add-to-the-piles-of-rainbow-glass-that-s-been-blown/)

[Suzanne Collins](https://sms4smile.com/quotes/author/suzanne-collins/)

> [Global is a unifying bond for people. Once they get outside their own heads and their own communities and see themselves in a broader…](https://sms4smile.com/quotes/kathy-calvin/global-is-a-unifying-bond-for-people-once-they-get-outside-their-own/)

[Kathy Calvin](https://sms4smile.com/quotes/author/kathy-calvin/)

Browse all 2,710 Add quotes

```json
{
    "@context": "https://schema.org",
    "@graph": [
        {
            "@type": "Quotation",
            "text": "Good code is its own best documentation. As you're about to add a comment, ask yourself, \"How can I improve the code so that this comment isn't needed?\" Improve the code and then document it to make it even clearer.",
            "creator": {
                "@type": "Person",
                "name": "Steve McConnell"
            },
            "isPartOf": {
                "@id": "https://sms4smile.com/quotes/#website"
            },
            "url": "https://sms4smile.com/quotes/steve-mcconnell/good-code-is-its-own-best-documentation-as-you-re-about-to-add-a/",
            "about": {
                "@type": "Thing",
                "name": "Add"
            },
            "@id": "https://sms4smile.com/quotes/steve-mcconnell/good-code-is-its-own-best-documentation-as-you-re-about-to-add-a/#quotation",
            "image": {
                "@type": "ImageObject",
                "@id": "https://sms4smile.com/quotes/i/090/steve-mcconnell-11957_add_good-code-is-its-own-best-documentation_2138209.png",
                "contentUrl": "https://sms4smile.com/quotes/i/090/steve-mcconnell-11957_add_good-code-is-its-own-best-documentation_2138209.png",
                "url": "https://sms4smile.com/quotes/i/090/steve-mcconnell-11957_add_good-code-is-its-own-best-documentation_2138209.png",
                "width": 1080,
                "height": 1080,
                "caption": "“Good code is its own best documentation. As you're about to add a comment, ask yourself, \"How can I improve…” — Steve McConnell",
                "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": "Steve McConnell",
                    "item": "https://sms4smile.com/quotes/author/steve-mcconnell/"
                },
                {
                    "@type": "ListItem",
                    "position": 4,
                    "name": "Good code is its own best...",
                    "item": "https://sms4smile.com/quotes/steve-mcconnell/good-code-is-its-own-best-documentation-as-you-re-about-to-add-a/"
                }
            ],
            "@id": "https://sms4smile.com/quotes/steve-mcconnell/good-code-is-its-own-best-documentation-as-you-re-about-to-add-a/#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
            }
        }
    ]
}
```
