---
title: "Meaning & Key Takeaway of: Everyone knows that debugging is twice as…"
description: "\"“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 be when you write it, how wi..."
image: "https://sms4smile.com/quotes/i/a95/brian-kernighan-27197_debugging_everyone-knows-that-debugging-is-twice-a_1593382.png"
---

#  Everyone knows that debugging is twice as hard as writing…

![“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 be when you write it, how will you ever debug it?” quote by Brian Kernighan](https://sms4smile.com/quotes/i/a95/brian-kernighan-27197_debugging_everyone-knows-that-debugging-is-twice-a_1593382.png)   [Download](https://sms4smile.com/quotes/i/a95/brian-kernighan-27197_debugging_everyone-knows-that-debugging-is-twice-a_1593382.png) [Open image](https://sms4smile.com/quotes/i/a95/brian-kernighan-27197_debugging_everyone-knows-that-debugging-is-twice-a_1593382.png)

> ““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 be when you write it, how will you ever debug it?””

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

Debugging is inherently harder than writing code; cleverness in coding can hinder later debugging.

**In simple terms:** Debugging is tougher than coding.

Key Takeaway

Write simple, clear code.

Themes

software development problem solving efficiency

Mood

practical reflective

Type

technical advice

When to use this quote

- software projects
- learning programming
- team code reviews

Key Concepts

code complexity debugging strategies

Questions to Reflect On

- How can you simplify code to ease debugging?
- What practices reduce debugging difficulty?

A Different Perspective

Complex code may mask bugs despite clever design.

★ ★ ★ ★ ★   No ratings yet

[Debugging](https://sms4smile.com/quotes/about/debugging/) [First place](https://sms4smile.com/quotes/about/first-place/) [Programming](https://sms4smile.com/quotes/about/programming/) [Technology](https://sms4smile.com/quotes/about/technology/)

## Related quotes

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

> [If you're as clever as you can be when you write it, how will you ever debug it?](https://sms4smile.com/quotes/brian-kernighan/if-you-re-as-clever-as-you-can-be-when-you-write-it-how-will-you-ever/)

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

> [Early Apple machines -- don't know how to answer what it was like since there were so few tools. Just had to keep debugging…](https://sms4smile.com/quotes/bob-frankston/early-apple-machines-don-t-know-how-to-answer-what-it-was-like-since/)

Bob Frankston

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

> [The most effective debugging tool is still careful thought, coupled with judiciously placed print statements.](https://sms4smile.com/quotes/brian-kernighan/the-most-effective-debugging-tool-is-still-careful-thought-coupled/)

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

> [Each new user of a new system uncovers a new class of bugs.](https://sms4smile.com/quotes/brian-kernighan/each-new-user-of-a-new-system-uncovers-a-new-class-of-bugs/)

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

> [“TFS has an option to publish all the PDB files from your builds to a shared location, which can then act as a Symbol…](https://sms4smile.com/quotes/anonymous/tfs-has-an-option-to-publish-all-the-pdb-files-from-your-builds-to-a/)

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

> ['Debug' is '2001' from Hal's perspective.](https://sms4smile.com/quotes/david-hewlett/debug-is-2001-from-hal-s-perspective/)

[David Hewlett](https://sms4smile.com/quotes/author/david-hewlett/)

> [“17. The Secret Biome On the main menu, if you hold down shift while looking at other world options you will get the option…](https://sms4smile.com/quotes/herobrine-books/17-the-secret-biome-on-the-main-menu-if-you-hold-down-shift-while/)

[Herobrine Books](https://sms4smile.com/quotes/author/herobrine-books/)

> [People get annoyed when you try to debug them.](https://sms4smile.com/quotes/larry-wall/people-get-annoyed-when-you-try-to-debug-them/)

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

> [Writing software is a very intense, very personal thing. You have to have time to work your way through it, to understand it. Then…](https://sms4smile.com/quotes/vint-cerf/writing-software-is-a-very-intense-very-personal-thing-you-have-to/)

[Vint Cerf](https://sms4smile.com/quotes/author/vint-cerf/)

> [Real software engineers don't debug programs, they verify correctness. This process doesn't necessarily involve execution of anything on a computer, except perhaps a Correctness…](https://sms4smile.com/quotes/woody-allen/real-software-engineers-don-t-debug-programs-they-verify-correctness/)

[Woody Allen](https://sms4smile.com/quotes/author/woody-allen/)

> [I do as much debugging as possible on the Mac, but I occasionally must debug problems in the PC world, which is significantly slower.](https://sms4smile.com/quotes/robert-patterson/i-do-as-much-debugging-as-possible-on-the-mac-but-i-occasionally-must/)

[Robert Patterson](https://sms4smile.com/quotes/author/robert-patterson/)

> [Would you rather Test-First, or Debug-Later ?](https://sms4smile.com/quotes/robert-cecil-martin/would-you-rather-test-first-or-debug-later/)

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

> [Building technical systems involves a lot of hard work and specialized knowledge: languages and protocols, coding and debugging, testing and refactoring.](https://sms4smile.com/quotes/jesse-james-garrett/building-technical-systems-involves-a-lot-of-hard-work-and/)

[Jesse James Garrett](https://sms4smile.com/quotes/author/jesse-james-garrett/)

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

> [Trying to outsmart a compiler defeats much of the purpose of using one.](https://sms4smile.com/quotes/brian-kernighan/trying-to-outsmart-a-compiler-defeats-much-of-the-purpose-of-using-one/)

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

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

> [Building technical systems involves a lot of hard work and specialized knowledge: languages and protocols, coding and debugging, testing and refactoring.](https://sms4smile.com/quotes/jesse-james-garrett/building-technical-systems-involves-a-lot-of-hard-work-and/)

[Jesse James Garrett](https://sms4smile.com/quotes/author/jesse-james-garrett/)

> [The process of debugging, going an correcting the program and then looking at the behavior, and then correcting it again, and finally iteratively getting…](https://sms4smile.com/quotes/nicholas-negroponte/the-process-of-debugging-going-an-correcting-the-program-and-then/)

[Nicholas Negroponte](https://sms4smile.com/quotes/author/nicholas-negroponte/)

> [If debugging is the process of removing bugs, then programming must be the one to put them in](https://sms4smile.com/quotes/arshad-feeroz/if-debugging-is-the-process-of-removing-bugs-then-programming-must-be/)

Arshad Feeroz

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

> [The most frequent complaint is that it's hard. True. it's a hard game to win Also, many people ask me how to use the…](https://sms4smile.com/quotes/graham-nelson/the-most-frequent-complaint-is-that-it-s-hard-true-it-s-a-hard-game/)

[Graham Nelson](https://sms4smile.com/quotes/author/graham-nelson/)

> [Testing proves a programmer’s failure. Debugging is the programmer’s vindication.](https://sms4smile.com/quotes/boris-beizer/testing-proves-a-programmer-s-failure-debugging-is-the-programmer-s/)

[Boris Beizer](https://sms4smile.com/quotes/author/boris-beizer/)

> [We should forget about small efficiencies, say about 97% of the time: premature optimization is the root of all evil. Yet we should not…](https://sms4smile.com/quotes/donald-knuth/we-should-forget-about-small-efficiencies-say-about-97-of-the-time/)

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

> [There has never been an unexpectedly short debugging period in the history of computers.](https://sms4smile.com/quotes/steven-levy/there-has-never-been-an-unexpectedly-short-debugging-period-in-the/)

[Steven Levy](https://sms4smile.com/quotes/author/steven-levy/)

> [Rushing to optimize before the bottlenecks are known may be the only error to have ruined more designs than feature creep. From tortured code…](https://sms4smile.com/quotes/eric-s-raymond/rushing-to-optimize-before-the-bottlenecks-are-known-may-be-the-only/)

[Eric S. Raymond](https://sms4smile.com/quotes/author/eric-s-raymond/)

> [Programmers waste enormous amounts of time thinking about, or worrying about, the speed of noncritical parts of their programs, and these attempts at efficiency…](https://sms4smile.com/quotes/donald-knuth/programmers-waste-enormous-amounts-of-time-thinking-about-or-worrying/)

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

> [If you want more effective programmers, you will discover that they should not waste their time debugging, they should not introduce the bugs to…](https://sms4smile.com/quotes/edsger-dijkstra/if-you-want-more-effective-programmers-you-will-discover-that-they/)

[Edsger Dijkstra](https://sms4smile.com/quotes/author/edsger-dijkstra/)

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

> [The wages of sin is debugging.](https://sms4smile.com/quotes/ron-jeffries/the-wages-of-sin-is-debugging/)

[Ron Jeffries](https://sms4smile.com/quotes/author/ron-jeffries/)

> [Treating your users as co-developers is your least-hassle route to rapid code improvement and effective debugging.](https://sms4smile.com/quotes/eric-s-raymond/treating-your-users-as-co-developers-is-your-least-hassle-route-to/)

[Eric S. Raymond](https://sms4smile.com/quotes/author/eric-s-raymond/)

> [ “Remember, though, that debugging is as much art as it is computer science \[..\]” ](https://sms4smile.com/quotes/michael-a-vine/remember-though-that-debugging-is-as-much-art-as-it-is-computer/)

Michael A. Vine

[Browse all 35 Debugging quotes ](https://sms4smile.com/quotes/about/debugging/)

```json
{
    "@context": "https://schema.org",
    "@graph": [
        {
            "@type": "Quotation",
            "text": "“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 be when you write it, how will you ever debug it?”",
            "creator": {
                "@type": "Person",
                "name": "Brian Kernighan"
            },
            "isPartOf": {
                "@id": "https://sms4smile.com/quotes/#website"
            },
            "url": "https://sms4smile.com/quotes/brian-kernighan/everyone-knows-that-debugging-is-twice-as-hard-as-writing-a-program/",
            "about": {
                "@type": "Thing",
                "name": "Debugging"
            },
            "@id": "https://sms4smile.com/quotes/brian-kernighan/everyone-knows-that-debugging-is-twice-as-hard-as-writing-a-program/#quotation",
            "image": {
                "@type": "ImageObject",
                "@id": "https://sms4smile.com/quotes/i/a95/brian-kernighan-27197_debugging_everyone-knows-that-debugging-is-twice-a_1593382.png",
                "contentUrl": "https://sms4smile.com/quotes/i/a95/brian-kernighan-27197_debugging_everyone-knows-that-debugging-is-twice-a_1593382.png",
                "url": "https://sms4smile.com/quotes/i/a95/brian-kernighan-27197_debugging_everyone-knows-that-debugging-is-twice-a_1593382.png",
                "width": 1080,
                "height": 1080,
                "caption": "“Everyone knows that debugging is twice as hard as writing a program in the first place. So if you're as…” — 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": "“Everyone knows that debugging is twice...",
                    "item": "https://sms4smile.com/quotes/brian-kernighan/everyone-knows-that-debugging-is-twice-as-hard-as-writing-a-program/"
                }
            ],
            "@id": "https://sms4smile.com/quotes/brian-kernighan/everyone-knows-that-debugging-is-twice-as-hard-as-writing-a-program/#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
            }
        }
    ]
}
```
