---
title: "Meaning & Key Takeaway of: Trying to outsmart a compiler defeats…"
description: "\"Trying to outsmart a compiler defeats much of the purpose of using one.\" — Brian Kernighan"
image: "https://sms4smile.com/quotes/i/0bb/brian-kernighan-27197_computer-programmers_trying-to-outsmart-a-compiler-defeats-mu_152420.png"
---

#  Trying to outsmart a compiler defeats much of the purpose…

![“Trying to outsmart a compiler defeats much of the purpose of using one.” quote by Brian Kernighan](https://sms4smile.com/quotes/i/0bb/brian-kernighan-27197_computer-programmers_trying-to-outsmart-a-compiler-defeats-mu_152420.png)   [Download](https://sms4smile.com/quotes/i/0bb/brian-kernighan-27197_computer-programmers_trying-to-outsmart-a-compiler-defeats-mu_152420.png) [Open image](https://sms4smile.com/quotes/i/0bb/brian-kernighan-27197_computer-programmers_trying-to-outsmart-a-compiler-defeats-mu_152420.png)

> “Trying to outsmart a compiler defeats much of the purpose of using one.”

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

## About This Quote

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

Trying to outwit a compiler undermines its purpose, which is to automate reliable code translation.

**In simple terms:** Outsmarting a compiler defeats its usefulness.

Key Takeaway

Use compilers as tools, not puzzles.

Themes

programming efficiency automation

Mood

analytical pragmatic

Type

technical educational

When to use this quote

- code optimization
- debugging
- learning programming

Key Concepts

software engineering compiler theory

Questions to Reflect On

- Why do developers try to outsmart tools?
- What benefits come from respecting compiler constraints?

A Different Perspective

Compilers can still be tricked by complex code.

★ ★ ★ ★ ★   No ratings yet

[Computer programmers](https://sms4smile.com/quotes/about/computer-programmers/) [Computer programming](https://sms4smile.com/quotes/about/computer-programming/) [Defeat](https://sms4smile.com/quotes/about/defeat/) [Inspirational](https://sms4smile.com/quotes/about/inspirational/) [Programmers](https://sms4smile.com/quotes/about/programmers/) [Programming](https://sms4smile.com/quotes/about/programming/) [Purpose](https://sms4smile.com/quotes/about/purpose/) [Technology](https://sms4smile.com/quotes/about/technology/)

## Related quotes

> [The apparatus defeats its own purpose if its purpose is to create a humane existence on the basis of a humanized nature.](https://sms4smile.com/quotes/herbert-marcuse/the-apparatus-defeats-its-own-purpose-if-its-purpose-is-to-create-a/)

[Herbert Marcuse](https://sms4smile.com/quotes/author/herbert-marcuse/)

> [Censorship always defeats it own purpose, for it creates in the end the kind of society that is incapable of exercising real discretion.](https://sms4smile.com/quotes/henry-steele-commager/censorship-always-defeats-it-own-purpose-for-it-creates-in-the-end/)

[Henry Steele Commager](https://sms4smile.com/quotes/author/henry-steele-commager/)

> [Controlling complexity is the essence of computer programming.](https://sms4smile.com/quotes/brian-kernighan/controlling-complexity-is-the-essence-of-computer-programming/)

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

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

> [A word too much always defeats its purpose.](https://sms4smile.com/quotes/arthur-schopenhauer/a-word-too-much-always-defeats-its-purpose/)

[Arthur Schopenhauer](https://sms4smile.com/quotes/author/arthur-schopenhauer/)

> [“To conquer life defeats the purpose of living”](https://sms4smile.com/quotes/carlo-j-vella/to-conquer-life-defeats-the-purpose-of-living/)

Carlo J Vella

> [It's about bums on seats. If nobody wants to listen to what you are doing, it kind of defeats the purpose really, doesn't it?](https://sms4smile.com/quotes/james-grant/it-s-about-bums-on-seats-if-nobody-wants-to-listen-to-what-you-are/)

[James Grant](https://sms4smile.com/quotes/author/james-grant/)

> [The fact is that censorship always defeats its own purpose, for it creates, in the end, the kind of society that is incapable of…](https://sms4smile.com/quotes/henry-steele-commager/the-fact-is-that-censorship-always-defeats-its-own-purpose-for-it/)

[Henry Steele Commager](https://sms4smile.com/quotes/author/henry-steele-commager/)

> [“Opal is a Ruby to JavaScript compiler.”](https://sms4smile.com/quotes/anonymous/opal-is-a-ruby-to-javascript-compiler/)

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

> [What a lot of people don't know, because in a lot of TV and movies, they have a lot of men talking about computers…](https://sms4smile.com/quotes/lisa-ling/what-a-lot-of-people-don-t-know-because-in-a-lot-of-tv-and-movies/)

[Lisa Ling](https://sms4smile.com/quotes/author/lisa-ling/)

> [Developing a compiler was a logical move; but in matters like this, you don't run against logic - you run against people who can't…](https://sms4smile.com/quotes/grace-hopper/developing-a-compiler-was-a-logical-move-but-in-matters-like-this-you/)

[Grace Hopper](https://sms4smile.com/quotes/author/grace-hopper/)

> [I had a running compiler and nobody would touch it. They told me computers could only do arithmetic.](https://sms4smile.com/quotes/grace-hopper/i-had-a-running-compiler-and-nobody-would-touch-it-they-told-me/)

[Grace Hopper](https://sms4smile.com/quotes/author/grace-hopper/)

> [“An interface is a contract between you, the code developer, and the compiler.”](https://sms4smile.com/quotes/anonymous/an-interface-is-a-contract-between-you-the-code-developer-and-the/)

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

> [The ALGOL compiler was probably one of the nicest pieces of code to come out at that time. I spent hours trying to fix…](https://sms4smile.com/quotes/gary-kildall/the-algol-compiler-was-probably-one-of-the-nicest-pieces-of-code-to/)

Gary Kildall

> [TeX has found at least one bug in every Pascal compiler it's been run on, I think, and at least two in every C…](https://sms4smile.com/quotes/donald-knuth/tex-has-found-at-least-one-bug-in-every-pascal-compiler-it-s-been-run/)

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

## More by Brian Kernighan

> [Get the weirdnesses into the data where you can manipulate them easily, and the regularity into the code because regular code is a lot…](https://sms4smile.com/quotes/brian-kernighan/get-the-weirdnesses-into-the-data-where-you-can-manipulate-them/)

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

> [An effective way to test code is to exercise it at its natural boundaries](https://sms4smile.com/quotes/brian-kernighan/an-effective-way-to-test-code-is-to-exercise-it-at-its-natural/)

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

> [As we said in the preface to the first edition, C "wears well as one's experience with it grows." With a decade more experience,…](https://sms4smile.com/quotes/brian-kernighan/as-we-said-in-the-preface-to-the-first-edition-c-wears-well-as-one-s/)

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

> [Trivia rarely affect efficiency. Are all the machinations worth it, when their primary effect is to make the code less readable?](https://sms4smile.com/quotes/brian-kernighan/trivia-rarely-affect-efficiency-are-all-the-machinations-worth-it/)

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

> [If you had done something twice, you are likely to do it again.](https://sms4smile.com/quotes/brian-kernighan/if-you-had-done-something-twice-you-are-likely-to-do-it-again/)

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

> [C is a razor-sharp tool, with which one can create an elegant and efficient program or a bloody mess.](https://sms4smile.com/quotes/brian-kernighan/c-is-a-razor-sharp-tool-with-which-one-can-create-an-elegant-and/)

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

> [Believe the terrain, not the map](https://sms4smile.com/quotes/brian-kernighan/believe-the-terrain-not-the-map/)

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

> [Mechanical rules are never a substitute for clarity of thought.](https://sms4smile.com/quotes/brian-kernighan/mechanical-rules-are-never-a-substitute-for-clarity-of-thought/)

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

> [Don't document bad code - rewrite it.](https://sms4smile.com/quotes/brian-kernighan/don-t-document-bad-code-rewrite-it/)

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

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

> [“Everyone knows that debugging is twice as hard as writing a program in the first place. So if you're as clever as you can…](https://sms4smile.com/quotes/brian-kernighan/everyone-knows-that-debugging-is-twice-as-hard-as-writing-a-program/)

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

> [ Another effective \[debugging\] technique is to explain your code to someone else. This will often cause you to explain the bug to yourself. Sometimes… ](https://sms4smile.com/quotes/brian-kernighan/another-effective-debugging-technique-is-to-explain-your-code-to/)

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

> [... it is a fundamental principle of testing that you must know in advance the answer each test case is supposed to produce. If…](https://sms4smile.com/quotes/brian-kernighan/it-is-a-fundamental-principle-of-testing-that-you-must-know-in/)

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

> [Do what you think is interesting, do something that you think is fun and worthwhile, because otherwise you won't do it well anyway.](https://sms4smile.com/quotes/brian-kernighan/do-what-you-think-is-interesting-do-something-that-you-think-is-fun/)

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

> [Controlling complexity is the essence of computer programming.](https://sms4smile.com/quotes/brian-kernighan/controlling-complexity-is-the-essence-of-computer-programming/)

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

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

## More Computer programmers quotes

> [I think once the artistic world of the type designer merged with the scientific world of the computer programmer, you began to see this…](https://sms4smile.com/quotes/michael-bierut/i-think-once-the-artistic-world-of-the-type-designer-merged-with-the/)

[Michael Bierut](https://sms4smile.com/quotes/author/michael-bierut/)

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

> [When I was at college there were two things I vowed I'd never do. One was go to a funeral and the other was…](https://sms4smile.com/quotes/patricia-cornwell/when-i-was-at-college-there-were-two-things-i-vowed-i-d-never-do-one/)

[Patricia Cornwell](https://sms4smile.com/quotes/author/patricia-cornwell/)

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

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

> [There are no standards for computer programmers and no group to certify them.](https://sms4smile.com/quotes/anonymous/there-are-no-standards-for-computer-programmers-and-no-group-to/)

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

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

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

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

> [Computer programmers tend, by and large, to be quirky and highly individualistic. Trying to organize or manage such awkward characters is normally as thankless…](https://sms4smile.com/quotes/john-naughton/computer-programmers-tend-by-and-large-to-be-quirky-and-highly/)

[John Naughton](https://sms4smile.com/quotes/author/john-naughton/)

> [Computer programmers do it byte by byte](https://sms4smile.com/quotes/alan-kay/computer-programmers-do-it-byte-by-byte/)

[Alan Kay](https://sms4smile.com/quotes/author/alan-kay/)

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

> [“Her team had become NASA’s first computer programmers. The women still worked closely with the engineers, almost all of whom were men, but it…](https://sms4smile.com/quotes/nathalia-holt/her-team-had-become-nasa-s-first-computer-programmers-the-women-still/)

[Nathalia Holt](https://sms4smile.com/quotes/author/nathalia-holt/)

> [I think that computer programming shows in my writing. Often when I write about computer programmers I'll write about the way that they see…](https://sms4smile.com/quotes/walter-mosley/i-think-that-computer-programming-shows-in-my-writing-often-when-i/)

[Walter Mosley](https://sms4smile.com/quotes/author/walter-mosley/)

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

[Browse all 67 Computer programmers quotes ](https://sms4smile.com/quotes/about/computer-programmers/)

```json
{
    "@context": "https://schema.org",
    "@graph": [
        {
            "@type": "Quotation",
            "text": "Trying to outsmart a compiler defeats much of the purpose of using one.",
            "creator": {
                "@type": "Person",
                "name": "Brian Kernighan"
            },
            "isPartOf": {
                "@id": "https://sms4smile.com/quotes/#website"
            },
            "url": "https://sms4smile.com/quotes/brian-kernighan/trying-to-outsmart-a-compiler-defeats-much-of-the-purpose-of-using-one/",
            "about": {
                "@type": "Thing",
                "name": "Computer programmers"
            },
            "@id": "https://sms4smile.com/quotes/brian-kernighan/trying-to-outsmart-a-compiler-defeats-much-of-the-purpose-of-using-one/#quotation",
            "image": {
                "@type": "ImageObject",
                "@id": "https://sms4smile.com/quotes/i/0bb/brian-kernighan-27197_computer-programmers_trying-to-outsmart-a-compiler-defeats-mu_152420.png",
                "contentUrl": "https://sms4smile.com/quotes/i/0bb/brian-kernighan-27197_computer-programmers_trying-to-outsmart-a-compiler-defeats-mu_152420.png",
                "url": "https://sms4smile.com/quotes/i/0bb/brian-kernighan-27197_computer-programmers_trying-to-outsmart-a-compiler-defeats-mu_152420.png",
                "width": 1080,
                "height": 1080,
                "caption": "“Trying to outsmart a compiler defeats much of the purpose of using one.” — Brian Kernighan",
                "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": "Brian Kernighan",
                    "item": "https://sms4smile.com/quotes/author/brian-kernighan/"
                },
                {
                    "@type": "ListItem",
                    "position": 4,
                    "name": "Trying to outsmart a compiler defeats...",
                    "item": "https://sms4smile.com/quotes/brian-kernighan/trying-to-outsmart-a-compiler-defeats-much-of-the-purpose-of-using-one/"
                }
            ],
            "@id": "https://sms4smile.com/quotes/brian-kernighan/trying-to-outsmart-a-compiler-defeats-much-of-the-purpose-of-using-one/#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
            }
        }
    ]
}
```
