---
title: "Meaning & Key Takeaway of: If you cannot grok the overall structure…"
description: "\"If you cannot grok the overall structure of a program while taking a shower, you are not ready to code it.\" — Richard E. Pattis"
image: "https://sms4smile.com/quotes/i/5e1/richard-e-pattis-41876_code_if-you-cannot-grok-the-overall-structure_30010.png"
---

#  If you cannot grok the overall structure of a program…

![“If you cannot grok the overall structure of a program while taking a shower, you are not ready to code it.” quote by Richard E. Pattis](https://sms4smile.com/quotes/i/5e1/richard-e-pattis-41876_code_if-you-cannot-grok-the-overall-structure_30010.png)   [Download](https://sms4smile.com/quotes/i/5e1/richard-e-pattis-41876_code_if-you-cannot-grok-the-overall-structure_30010.png) [Open image](https://sms4smile.com/quotes/i/5e1/richard-e-pattis-41876_code_if-you-cannot-grok-the-overall-structure_30010.png)

> “If you cannot grok the overall structure of a program while taking a shower, you are not ready to code it.”

[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.

Understanding a program's architecture must be intuitive enough to be visualized without tools; otherwise you lack the mental model to implement it.

**In simple terms:** Code readiness requires mental grasp of structure.

Key Takeaway

Grasp the big picture before coding.

Themes

cognition software design problem solving mental modeling learning

Mood

focused curious confident

Type

advice observation instruction

When to use this quote

- learning a new language
- debugging complex code
- preparing for a project
- teaching programming

Key Concepts

abstraction system thinking program architecture

Practical Applications

- design reviews
- code planning

Questions to Reflect On

- How can you test your mental model of a system?
- What signals indicate you need deeper design study?

★ ★ ★ ★ ★   No ratings yet

[Code](https://sms4smile.com/quotes/about/code/) [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/) [Programmers](https://sms4smile.com/quotes/about/programmers/) [Programming](https://sms4smile.com/quotes/about/programming/) [Programming languages](https://sms4smile.com/quotes/about/programming-languages/) [Simplicity](https://sms4smile.com/quotes/about/simplicity/) [Software](https://sms4smile.com/quotes/about/software/) [Structure](https://sms4smile.com/quotes/about/structure/) [Technology](https://sms4smile.com/quotes/about/technology/)

## Related quotes

> [When debugging, novices insert corrective code; experts remove defective code.](https://sms4smile.com/quotes/richard-e-pattis/when-debugging-novices-insert-corrective-code-experts-remove/)

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

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

> [The unavoidable price of reliability is simplicity.](https://sms4smile.com/quotes/tony-hoare/the-unavoidable-price-of-reliability-is-simplicity/)

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

> [Most of you are familiar with the virtues of a programmer. There are three, of course: laziness, impatience, and hubris.](https://sms4smile.com/quotes/larry-wall/most-of-you-are-familiar-with-the-virtues-of-a-programmer-there-are/)

[Larry Wall](https://sms4smile.com/quotes/author/larry-wall/)

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

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

> [The only way for errors to occur in a program is by being put there by the author. No other mechanisms are known. Programs…](https://sms4smile.com/quotes/harlan-mills/the-only-way-for-errors-to-occur-in-a-program-is-by-being-put-there/)

Harlan Mills

> [The magic of myth and legend has come true in our time. One types the correct incantation on a keyboard, and a display screen…](https://sms4smile.com/quotes/fred-brooks/the-magic-of-myth-and-legend-has-come-true-in-our-time-one-types-the/)

[Fred Brooks](https://sms4smile.com/quotes/author/fred-brooks/)

> [Should array indices start at 0 or 1? My compromise of 0.5 was rejected without, I thought, proper consideration.](https://sms4smile.com/quotes/stan-kelly-bootle/should-array-indices-start-at-0-or-1-my-compromise-of-0-5-was/)

[Stan Kelly-Bootle](https://sms4smile.com/quotes/author/stan-kelly-bootle/)

> [When I'm working on a problem, I never think about beauty. I think only how to solve the problem.](https://sms4smile.com/quotes/r-buckminster-fuller/when-i-m-working-on-a-problem-i-never-think-about-beauty-i-think-only/)

[R. Buckminster Fuller](https://sms4smile.com/quotes/author/r-buckminster-fuller/)

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

> [ It's \[programming\] the only job I can think of where I get to be both an engineer and an artist. There's an incredible, rigorous,… ](https://sms4smile.com/quotes/andy-hertzfeld/it-s-programming-the-only-job-i-can-think-of-where-i-get-to-be-both/)

[Andy Hertzfeld](https://sms4smile.com/quotes/author/andy-hertzfeld/)

> [The generation of random numbers is too important to be left to chance.](https://sms4smile.com/quotes/robert-coveyou/the-generation-of-random-numbers-is-too-important-to-be-left-to-chance/)

Robert Coveyou

> [Beauty is more important in computing than anywhere else in technology because software is so complicated. Beauty is the ultimate defense against complexity.](https://sms4smile.com/quotes/david-gelernter/beauty-is-more-important-in-computing-than-anywhere-else-in/)

[David Gelernter](https://sms4smile.com/quotes/author/david-gelernter/)

## More by 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/)

> [When debugging, novices insert corrective code; experts remove defective code.](https://sms4smile.com/quotes/richard-e-pattis/when-debugging-novices-insert-corrective-code-experts-remove/)

[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": "If you cannot grok the overall structure of a program while taking a shower, you are not ready to code it.",
            "creator": {
                "@type": "Person",
                "name": "Richard E. Pattis"
            },
            "isPartOf": {
                "@id": "https://sms4smile.com/quotes/#website"
            },
            "url": "https://sms4smile.com/quotes/richard-e-pattis/if-you-cannot-grok-the-overall-structure-of-a-program-while-taking-a/",
            "about": {
                "@type": "Thing",
                "name": "Code"
            },
            "@id": "https://sms4smile.com/quotes/richard-e-pattis/if-you-cannot-grok-the-overall-structure-of-a-program-while-taking-a/#quotation",
            "image": {
                "@type": "ImageObject",
                "@id": "https://sms4smile.com/quotes/i/5e1/richard-e-pattis-41876_code_if-you-cannot-grok-the-overall-structure_30010.png",
                "contentUrl": "https://sms4smile.com/quotes/i/5e1/richard-e-pattis-41876_code_if-you-cannot-grok-the-overall-structure_30010.png",
                "url": "https://sms4smile.com/quotes/i/5e1/richard-e-pattis-41876_code_if-you-cannot-grok-the-overall-structure_30010.png",
                "width": 1080,
                "height": 1080,
                "caption": "“If you cannot grok the overall structure of a program while taking a shower, you are not ready to code it.” — 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": "If you cannot grok the overall...",
                    "item": "https://sms4smile.com/quotes/richard-e-pattis/if-you-cannot-grok-the-overall-structure-of-a-program-while-taking-a/"
                }
            ],
            "@id": "https://sms4smile.com/quotes/richard-e-pattis/if-you-cannot-grok-the-overall-structure-of-a-program-while-taking-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
            }
        }
    ]
}
```
