---
title: "Meaning & Key Takeaway of: The first law of computer science: Every…"
description: "\"The first law of computer science: Every problem is solved by yet another indirection.\" — Bjarne Stroustrup"
image: "https://sms4smile.com/quotes/i/9f3/bjarne-stroustrup-11774_computer_the-first-law-of-computer-science-every_2583877.jpg"
---

#  The first law of computer science: Every problem is solved…

![“The first law of computer science: Every problem is solved by yet another indirection.” quote by Bjarne Stroustrup](https://sms4smile.com/quotes/i/9f3/bjarne-stroustrup-11774_computer_the-first-law-of-computer-science-every_2583877.jpg)   [Download](https://sms4smile.com/quotes/i/9f3/bjarne-stroustrup-11774_computer_the-first-law-of-computer-science-every_2583877.jpg) [Open image](https://sms4smile.com/quotes/i/9f3/bjarne-stroustrup-11774_computer_the-first-law-of-computer-science-every_2583877.jpg)

> “The first law of computer science: Every problem is solved by yet another indirection.”

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

## About This Quote

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

Complex problems are often solved by adding layers of abstraction, which can simplify implementation.

**In simple terms:** Indirection solves problems.

Key Takeaway

Use abstraction to manage complexity.

Themes

computer science abstraction problem solving design patterns

Mood

technical analytical practical

Type

lecture technical

When to use this quote

- programming
- system design
- education

Key Concepts

indirection modularity software architecture

Questions to Reflect On

- When does abstraction become counterproductive?
- How do you balance simplicity and flexibility?

A Different Perspective

Too many layers can cause performance overhead.

★ ★ ★ ★ ★   No ratings yet

[Computer](https://sms4smile.com/quotes/about/computer/) [Computer science](https://sms4smile.com/quotes/about/computer-science/) [Computers](https://sms4smile.com/quotes/about/computers/) [Law](https://sms4smile.com/quotes/about/law/) [Problem](https://sms4smile.com/quotes/about/problem/) [Science](https://sms4smile.com/quotes/about/science/)

## Related quotes

> [All problems in Computer Science can be solved by another level of indirection.](https://sms4smile.com/quotes/butler-lampson/all-problems-in-computer-science-can-be-solved-by-another-level-of/)

Butler Lampson

> [The real value of science is in the getting, and those who have tasted the pleasure of discovery alone know what science is. A…](https://sms4smile.com/quotes/frederick-soddy/the-real-value-of-science-is-in-the-getting-and-those-who-have-tasted/)

[Frederick Soddy](https://sms4smile.com/quotes/author/frederick-soddy/)

> [The problem in society is not kids not knowing science. The problem is adults not knowing science. They outnumber kids 5 to 1, they…](https://sms4smile.com/quotes/neil-degrasse-tyson/the-problem-in-society-is-not-kids-not-knowing-science-the-problem-is/)

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

> [We can solve any problem by introducing an extra level of indirection.](https://sms4smile.com/quotes/butler-lampson/we-can-solve-any-problem-by-introducing-an-extra-level-of-indirection/)

Butler Lampson

> [There's nothing in computing that can't be broken by another level of indirection.](https://sms4smile.com/quotes/rob-pike/there-s-nothing-in-computing-that-can-t-be-broken-by-another-level-of/)

[Rob Pike](https://sms4smile.com/quotes/author/rob-pike/)

> [Everything in the universe goes by indirection. There are no straight lines.](https://sms4smile.com/quotes/ralph-waldo-emerson/everything-in-the-universe-goes-by-indirection-there-are-no-straight/)

[Ralph Waldo Emerson](https://sms4smile.com/quotes/author/ralph-waldo-emerson/)

> [“Those will realize, who are capable of reflection, that the reality which excites us is an idea, of which the indirection, the veiling, the…](https://sms4smile.com/quotes/smith-iii-ted-j/those-will-realize-who-are-capable-of-reflection-that-the-reality/)

[Smith III, Ted J](https://sms4smile.com/quotes/author/smith-iii-ted-j/)

> [Too much zeal offends where indirection works.](https://sms4smile.com/quotes/euripides/too-much-zeal-offends-where-indirection-works/)

[Euripides](https://sms4smile.com/quotes/author/euripides/)

> [Politics is marginal, but literature moves along by indirection.](https://sms4smile.com/quotes/italo-calvino/politics-is-marginal-but-literature-moves-along-by-indirection/)

[Italo Calvino](https://sms4smile.com/quotes/author/italo-calvino/)

> [“C makes it easy to shoot yourself in the foot; C++ makes it harder, but when you do it blows your whole leg off.”](https://sms4smile.com/quotes/bjarne-stroustrup/c-makes-it-easy-to-shoot-yourself-in-the-foot-c-makes-it-harder-but-2/)

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

> [I think that it's extraordinarily important that we in computer science keep fun in computing. When it started out, it was an awful lot…](https://sms4smile.com/quotes/alan-perlis/i-think-that-it-s-extraordinarily-important-that-we-in-computer/)

[Alan Perlis](https://sms4smile.com/quotes/author/alan-perlis/)

> [I was on this path to becoming a computer-science guy, but I didn't like it. I got no joy from it. It was very,…](https://sms4smile.com/quotes/kumail-nanjiani/i-was-on-this-path-to-becoming-a-computer-science-guy-but-i-didn-t/)

[Kumail Nanjiani](https://sms4smile.com/quotes/author/kumail-nanjiani/)

> [Computer Science is a science of abstraction -creating the right model for a problem and devising the appropriate mechanizable techniques to solve it.](https://sms4smile.com/quotes/alfred-aho/computer-science-is-a-science-of-abstraction-creating-the-right-model/)

Alfred Aho

> [I shopped at J. Crew in high school, I studied computer science. I was a nerd-nerd, now I'm a music-nerd.](https://sms4smile.com/quotes/mayer-hawthorne/i-shopped-at-j-crew-in-high-school-i-studied-computer-science-i-was-a/)

[Mayer Hawthorne](https://sms4smile.com/quotes/author/mayer-hawthorne/)

> [It's interesting that the greatest minds of computer science, the founding fathers, like Alan Turing and Claude Shannon and Norbert Wiener, they all looked…](https://sms4smile.com/quotes/garry-kasparov/it-s-interesting-that-the-greatest-minds-of-computer-science-the/)

[Garry Kasparov](https://sms4smile.com/quotes/author/garry-kasparov/)

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

> [Any verbose and tedious solution is error-prone because programmers get bored.](https://sms4smile.com/quotes/bjarne-stroustrup/any-verbose-and-tedious-solution-is-error-prone-because-programmers/)

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

> [“There are only two kinds of languages: the ones people complain about and the ones nobody uses.”](https://sms4smile.com/quotes/bjarne-stroustrup/there-are-only-two-kinds-of-languages-the-ones-people-complain-about/)

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

> [Nobody should call themselves a professional if they only knew one language.](https://sms4smile.com/quotes/bjarne-stroustrup/nobody-should-call-themselves-a-professional-if-they-only-knew-one/)

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

> [It's easy to win forgiveness for being wrong; being right is what gets you into real trouble.](https://sms4smile.com/quotes/bjarne-stroustrup/it-s-easy-to-win-forgiveness-for-being-wrong-being-right-is-what-gets/)

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

> [Some software is actually pretty good, by any standard. Think of the Mars Rovers, Google, and the Human Genome Project. Now, that's quality software!](https://sms4smile.com/quotes/bjarne-stroustrup/some-software-is-actually-pretty-good-by-any-standard-think-of-the/)

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

> [C makes it easy to shoot yourself in the foot; C++ makes it harder, but when you do, it blows away your whole leg.](https://sms4smile.com/quotes/bjarne-stroustrup/c-makes-it-easy-to-shoot-yourself-in-the-foot-c-makes-it-harder-but/)

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

> [I assume that a sufficiently skilled will be able to do anything not explicitly forbidden by the hardware.](https://sms4smile.com/quotes/bjarne-stroustrup/i-assume-that-a-sufficiently-skilled-will-be-able-to-do-anything-not/)

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

> [I like doing research that has an impact. If I went to a company to make what they call 'real money,' I'd be just…](https://sms4smile.com/quotes/bjarne-stroustrup/i-like-doing-research-that-has-an-impact-if-i-went-to-a-company-to/)

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

> [I would encourage nonproprietary standards for tools and libraries](https://sms4smile.com/quotes/bjarne-stroustrup/i-would-encourage-nonproprietary-standards-for-tools-and-libraries/)

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

> [This evolution may compromise Java's claim of being simpler than C++, but my guess is that the effort will make Java a better language…](https://sms4smile.com/quotes/bjarne-stroustrup/this-evolution-may-compromise-java-s-claim-of-being-simpler-than-c/)

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

> [Clearly, I reject the view that there is one way that is right for everyone and for every problem](https://sms4smile.com/quotes/bjarne-stroustrup/clearly-i-reject-the-view-that-there-is-one-way-that-is-right-for/)

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

> [There is no one "root of all evil" in software development. Design is hard in many ways. People tend to underestimate the intellectual and…](https://sms4smile.com/quotes/bjarne-stroustrup/there-is-no-one-root-of-all-evil-in-software-development-design-is/)

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

> [However, when Java is promoted as the sole programming language, its flaws and limitations become serious.](https://sms4smile.com/quotes/bjarne-stroustrup/however-when-java-is-promoted-as-the-sole-programming-language-its/)

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

> [C++ is designed to allow you to express ideas, but if you don't have ideas or don't have any clue about how to express…](https://sms4smile.com/quotes/bjarne-stroustrup/c-is-designed-to-allow-you-to-express-ideas-but-if-you-don-t-have/)

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

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

## More Computer quotes

> [Issac:"I dislike living in a world without Augustus Waters." Computer: "I don't understand-" Issac: "Me neither. Pause](https://sms4smile.com/quotes/john-green/issac-i-dislike-living-in-a-world-without-augustus-waters-computer-i/)

[John Green](https://sms4smile.com/quotes/author/john-green/)

> [If you stood me in a costume next to a computer graphic of the same-looking character, I think there would be a difference. And…](https://sms4smile.com/quotes/warwick-davis/if-you-stood-me-in-a-costume-next-to-a-computer-graphic-of-the-same/)

[Warwick Davis](https://sms4smile.com/quotes/author/warwick-davis/)

> [The display is the computer.](https://sms4smile.com/quotes/jen-hsun-huang/the-display-is-the-computer/)

Jen-Hsun Huang

> [It's interesting that the greatest minds of computer science, the founding fathers, like Alan Turing and Claude Shannon and Norbert Wiener, they all looked…](https://sms4smile.com/quotes/garry-kasparov/it-s-interesting-that-the-greatest-minds-of-computer-science-the/)

[Garry Kasparov](https://sms4smile.com/quotes/author/garry-kasparov/)

> [One of our big goals in search is to make search that really understands exactly what you want, understands everything in the world. As…](https://sms4smile.com/quotes/larry-page/one-of-our-big-goals-in-search-is-to-make-search-that-really/)

[Larry Page](https://sms4smile.com/quotes/author/larry-page/)

> [We are beginning to see intimations of this in the implantation of computer devices into the human body.](https://sms4smile.com/quotes/ray-kurzweil/we-are-beginning-to-see-intimations-of-this-in-the-implantation-of/)

[Ray Kurzweil](https://sms4smile.com/quotes/author/ray-kurzweil/)

> [I'm from the South, so I'm very old-fashioned and I'm not very computer savvy at all, but I'm getting it. I understand that, if…](https://sms4smile.com/quotes/angie-harmon/i-m-from-the-south-so-i-m-very-old-fashioned-and-i-m-not-very/)

[Angie Harmon](https://sms4smile.com/quotes/author/angie-harmon/)

> [“To all the secret writers, late-night painters, would-be singers, lapsed and scared artists of every stripe, dig out your paintbrush, or your flute, or…](https://sms4smile.com/quotes/shauna-niequist/to-all-the-secret-writers-late-night-painters-would-be-singers-lapsed/)

[Shauna Niequist](https://sms4smile.com/quotes/author/shauna-niequist/)

> [A little bit more than 50% of what you see on screen is handcrafted and the other 50% was about emulating these textures on…](https://sms4smile.com/quotes/alex-abreu/a-little-bit-more-than-50-of-what-you-see-on-screen-is-handcrafted/)

[Alex Abreu](https://sms4smile.com/quotes/author/alex-abreu/)

> [Well I'm trying to think what I put in... I think I put in 'why?' to see if I'd confuse the computer.](https://sms4smile.com/quotes/karl-pilkington/well-i-m-trying-to-think-what-i-put-in-i-think-i-put-in-why-to-see-if/)

[Karl Pilkington](https://sms4smile.com/quotes/author/karl-pilkington/)

> [Our brains are great at knowing what to forget. We actually have to teach computers to do the same.](https://sms4smile.com/quotes/kevin-maney/our-brains-are-great-at-knowing-what-to-forget-we-actually-have-to/)

[Kevin Maney](https://sms4smile.com/quotes/author/kevin-maney/)

> [Nor would anybody suspect. If was one thing all people took for granted, was conviction that if you feed honest figures into a computer,…](https://sms4smile.com/quotes/robert-a-heinlein/nor-would-anybody-suspect-if-was-one-thing-all-people-took-for/)

[Robert A. Heinlein](https://sms4smile.com/quotes/author/robert-a-heinlein/)

> [In nine months, a group of children left alone with a computer in any language will reach the same standard as an office secretary…](https://sms4smile.com/quotes/sugata-mitra/in-nine-months-a-group-of-children-left-alone-with-a-computer-in-any/)

[Sugata Mitra](https://sms4smile.com/quotes/author/sugata-mitra/)

> [Why do you do what you do? Why do you dress the way you dress?Why do you do what you do with your time?…](https://sms4smile.com/quotes/tim-conway/why-do-you-do-what-you-do-why-do-you-dress-the-way-you-dress-why-do/)

[Tim Conway](https://sms4smile.com/quotes/author/tim-conway/)

> [Yeah, I'm a geek. I read sci-fi and I watch sci-fi films. I love my computer and I love to fix it. I'm a…](https://sms4smile.com/quotes/amber-benson/yeah-i-m-a-geek-i-read-sci-fi-and-i-watch-sci-fi-films-i-love-my/)

[Amber Benson](https://sms4smile.com/quotes/author/amber-benson/)

[Browse all 3,924 Computer quotes ](https://sms4smile.com/quotes/about/computer/)

```json
{
    "@context": "https://schema.org",
    "@graph": [
        {
            "@type": "Quotation",
            "text": "The first law of computer science: Every problem is solved by yet another indirection.",
            "creator": {
                "@type": "Person",
                "name": "Bjarne Stroustrup"
            },
            "isPartOf": {
                "@id": "https://sms4smile.com/quotes/#website"
            },
            "url": "https://sms4smile.com/quotes/bjarne-stroustrup/the-first-law-of-computer-science-every-problem-is-solved-by-yet/",
            "about": {
                "@type": "Thing",
                "name": "Computer"
            },
            "@id": "https://sms4smile.com/quotes/bjarne-stroustrup/the-first-law-of-computer-science-every-problem-is-solved-by-yet/#quotation",
            "image": {
                "@type": "ImageObject",
                "@id": "https://sms4smile.com/quotes/i/9f3/bjarne-stroustrup-11774_computer_the-first-law-of-computer-science-every_2583877.jpg",
                "contentUrl": "https://sms4smile.com/quotes/i/9f3/bjarne-stroustrup-11774_computer_the-first-law-of-computer-science-every_2583877.jpg",
                "url": "https://sms4smile.com/quotes/i/9f3/bjarne-stroustrup-11774_computer_the-first-law-of-computer-science-every_2583877.jpg",
                "width": 1080,
                "height": 1080,
                "caption": "“The first law of computer science: Every problem is solved by yet another indirection.” — Bjarne Stroustrup",
                "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": "Bjarne Stroustrup",
                    "item": "https://sms4smile.com/quotes/author/bjarne-stroustrup/"
                },
                {
                    "@type": "ListItem",
                    "position": 4,
                    "name": "The first law of computer science:...",
                    "item": "https://sms4smile.com/quotes/bjarne-stroustrup/the-first-law-of-computer-science-every-problem-is-solved-by-yet/"
                }
            ],
            "@id": "https://sms4smile.com/quotes/bjarne-stroustrup/the-first-law-of-computer-science-every-problem-is-solved-by-yet/#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
            }
        }
    ]
}
```
