---
title: "Meaning & Key Takeaway of: Another effective [debugging] technique…"
description: "\"Another effective [debugging] technique is to explain your code to someone else. This will often cause you to explain the bug to yourself. Sometimes it..."
image: "https://sms4smile.com/quotes/i/fb9/brian-kernighan-27197_bears_another-effective-debugging-technique-is_1618728.jpg"
---

#  Another effective \[debugging\] technique is to explain your…

![“Another effective &#91;debugging&#93; technique is to explain your code to someone else. This will often cause you to explain the bug to yourself. Sometimes it takes no more than a few sentences, followed by an embarrassed &quot;Never mind, I see what's wrong. Sorry to bother you.&quot; This works remarkably well…” quote by Brian Kernighan](https://sms4smile.com/quotes/i/fb9/brian-kernighan-27197_bears_another-effective-debugging-technique-is_1618728.jpg)   [Download](https://sms4smile.com/quotes/i/fb9/brian-kernighan-27197_bears_another-effective-debugging-technique-is_1618728.jpg) [Open image](https://sms4smile.com/quotes/i/fb9/brian-kernighan-27197_bears_another-effective-debugging-technique-is_1618728.jpg)

> “Another effective \[debugging\] technique is to explain your code to someone else. This will often cause you to explain the bug to yourself. Sometimes it takes no more than a few sentences, followed by an embarrassed "Never mind, I see what's wrong. Sorry to bother you." This works remarkably well; you can even use non-programmers as listeners. One university computer center kept a teddy bear near the help desk. Students with mysterious bugs were required to explain them to the bear before they could speak to a human counselor.”

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

Explaining code aloud forces you to clarify your thinking, often revealing bugs you missed while silently reviewing.

**In simple terms:** Talking through code helps spot errors.

Key Takeaway

Explain your code to a peer or object.

Themes

communication debugging learning

Mood

reflective lighthearted practical

Type

advice anecdotal educational

When to use this quote

- pair programming
- code review
- teaching
- self‑debugging
- teddy bear exercise

Key Concepts

metacognition self-explanation error detection

Questions to Reflect On

- How does verbalizing a problem change your perception?
- Can a non‑technical listener still help you debug?

A Different Perspective

May not work if the listener lacks technical context or you’re too embarrassed to articulate the problem.

★ ★ ★ ★ ★   No ratings yet

[Bears](https://sms4smile.com/quotes/about/bears/) [Bother](https://sms4smile.com/quotes/about/bother/) [Bugs](https://sms4smile.com/quotes/about/bugs/) [Bugs Required](https://sms4smile.com/quotes/about/bugs-required-240681/) [Causes](https://sms4smile.com/quotes/about/causes/) [Code](https://sms4smile.com/quotes/about/code/) [Computer](https://sms4smile.com/quotes/about/computer/) [Counselor](https://sms4smile.com/quotes/about/counselor/) [Debugging](https://sms4smile.com/quotes/about/debugging/) [Debugging Technique](https://sms4smile.com/quotes/about/debugging-technique-240679/) [Desks](https://sms4smile.com/quotes/about/desks/) [Effective Debugging](https://sms4smile.com/quotes/about/effective-debugging-240680/) [Embarrassed](https://sms4smile.com/quotes/about/embarrassed/) [Explain Bug](https://sms4smile.com/quotes/about/explain-bug-240678/) [Helping](https://sms4smile.com/quotes/about/helping/) [Humans](https://sms4smile.com/quotes/about/humans/) [Learning](https://sms4smile.com/quotes/about/learning/) [Listeners](https://sms4smile.com/quotes/about/listeners/) [Mind](https://sms4smile.com/quotes/about/mind/) [Mysterious](https://sms4smile.com/quotes/about/mysterious/) [Programmers](https://sms4smile.com/quotes/about/programmers/) [Programming](https://sms4smile.com/quotes/about/programming/) [Sentences](https://sms4smile.com/quotes/about/sentences/) [Sometimes](https://sms4smile.com/quotes/about/sometimes/) [Sorry](https://sms4smile.com/quotes/about/sorry/) [Speak](https://sms4smile.com/quotes/about/speak/) [Students](https://sms4smile.com/quotes/about/students/) [Technique](https://sms4smile.com/quotes/about/technique/) [Technology](https://sms4smile.com/quotes/about/technology/) [Teddy](https://sms4smile.com/quotes/about/teddy/) [Teddy bear](https://sms4smile.com/quotes/about/teddy-bear/) [University](https://sms4smile.com/quotes/about/university/) [Use](https://sms4smile.com/quotes/about/use/) [Wells](https://sms4smile.com/quotes/about/wells/)

## Related quotes

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

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

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

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

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

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

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

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

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

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

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

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

> [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](https://sms4smile.com/quotes/author/arshad-feeroz/)

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

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

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

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

> [For not only every democracy, but certainly every republic, bears within itself the seeds of its own destruction.](https://sms4smile.com/quotes/anonymous/for-not-only-every-democracy-but-certainly-every-republic-bears/)

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

> [She'd read once that if you ran into a bear in the woods you should avoid eye contact and you shouldn't run away, but…](https://sms4smile.com/quotes/anne-ursu/she-d-read-once-that-if-you-ran-into-a-bear-in-the-woods-you-should/)

[Anne Ursu](https://sms4smile.com/quotes/author/anne-ursu/)

> [In the movie, the stars above the ship bear no correspondence to any constellations in a real sky. Worse yet, while the heroine bobs...…](https://sms4smile.com/quotes/neil-degrasse-tyson/in-the-movie-the-stars-above-the-ship-bear-no-correspondence-to-any/)

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

> [Television series are like the stock market. There's room for bears and bulls but no room for pigs.](https://sms4smile.com/quotes/bob-newhart/television-series-are-like-the-stock-market-there-s-room-for-bears/)

[Bob Newhart](https://sms4smile.com/quotes/author/bob-newhart/)

> [The Germans are the most philosophic people in the world, and the greatest smokers: now I trace their philosophy to their smoking. Smoking has…](https://sms4smile.com/quotes/george-henry-borrow/the-germans-are-the-most-philosophic-people-in-the-world-and-the/)

[George Henry Borrow](https://sms4smile.com/quotes/author/george-henry-borrow/)

> [...Gratitude transforms the torment of memory of good things now gone into silent joy. One bears what was lovely in the past not as…](https://sms4smile.com/quotes/dietrich-bonhoeffer/gratitude-transforms-the-torment-of-memory-of-good-things-now-gone/)

[Dietrich Bonhoeffer](https://sms4smile.com/quotes/author/dietrich-bonhoeffer/)

> [You've had a whole lot of experience, but everything is also radically new at each moment, and you have to bring a kind of…](https://sms4smile.com/quotes/jean-houston/you-ve-had-a-whole-lot-of-experience-but-everything-is-also-radically/)

[Jean Houston](https://sms4smile.com/quotes/author/jean-houston/)

> [The rationale which accompanies that imposition of male authority euphemistically referred to as 'the battle of the sexes' bears a certain resemblance to the…](https://sms4smile.com/quotes/kate-millett/the-rationale-which-accompanies-that-imposition-of-male-authority/)

[Kate Millett](https://sms4smile.com/quotes/author/kate-millett/)

> [Pay no heed to the passing religious vogue. Go back to the grass roots. Open your hearts and search the Scriptures. Bear your cross,…](https://sms4smile.com/quotes/aiden-wilson-tozer/pay-no-heed-to-the-passing-religious-vogue-go-back-to-the-grass-roots/)

[Aiden Wilson Tozer](https://sms4smile.com/quotes/author/aiden-wilson-tozer/)

> [I want you to take a red-hot bath as hot as you can bear it, and just relax your nerves. You can read in…](https://sms4smile.com/quotes/f-scott-fitzgerald/i-want-you-to-take-a-red-hot-bath-as-hot-as-you-can-bear-it-and-just/)

[F. Scott Fitzgerald](https://sms4smile.com/quotes/author/f-scott-fitzgerald/)

> [He sank into the rocking chair, the same one in which Rebecca had sat during the early days of the house to give embroidery…](https://sms4smile.com/quotes/gabriel-garc-a-m-rquez/he-sank-into-the-rocking-chair-the-same-one-in-which-rebecca-had-sat/)

[Gabriel Garcia Marquez](https://sms4smile.com/quotes/author/gabriel-garc-a-m-rquez/)

> [Some things in this world just ain't meant to be, not in the times we want 'em to, and the heart has to hold…](https://sms4smile.com/quotes/james-mcbride/some-things-in-this-world-just-ain-t-meant-to-be-not-in-the-times-we/)

[James McBride](https://sms4smile.com/quotes/author/james-mcbride/)

> [And if anyone knows anything about anything," said Bear to himself, "it's Owl who knows something about something," he said, "or my name's not…](https://sms4smile.com/quotes/anonymous/and-if-anyone-knows-anything-about-anything-said-bear-to-himself-it-s/)

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

> [I'm totally independent. I don't bear any responsibility to any system.](https://sms4smile.com/quotes/ai-weiwei/i-m-totally-independent-i-don-t-bear-any-responsibility-to-any-system/)

[Ai Weiwei](https://sms4smile.com/quotes/author/ai-weiwei/)

> [I'm supportive of women, absolutely, and it's so gratifying to have girls come up and say, 'I'm really inspired by your guitar playing.' I…](https://sms4smile.com/quotes/st-vincent/i-m-supportive-of-women-absolutely-and-it-s-so-gratifying-to-have/)

[St. Vincent](https://sms4smile.com/quotes/author/st-vincent/)

[Browse all 4,111 Bears quotes ](https://sms4smile.com/quotes/about/bears/)

```json
{
    "@context": "https://schema.org",
    "@graph": [
        {
            "@type": "Quotation",
            "text": "Another effective [debugging] technique is to explain your code to someone else. This will often cause you to explain the bug to yourself. Sometimes it takes no more than a few sentences, followed by an embarrassed \"Never mind, I see what's wrong. Sorry to bother you.\" This works remarkably well; you can even use non-programmers as listeners. One university computer center kept a teddy bear near the help desk. Students with mysterious bugs were required to explain them to the bear before they could speak to a human counselor.",
            "creator": {
                "@type": "Person",
                "name": "Brian Kernighan"
            },
            "isPartOf": {
                "@id": "https://sms4smile.com/quotes/#website"
            },
            "url": "https://sms4smile.com/quotes/brian-kernighan/another-effective-debugging-technique-is-to-explain-your-code-to/",
            "about": {
                "@type": "Thing",
                "name": "Bears"
            },
            "@id": "https://sms4smile.com/quotes/brian-kernighan/another-effective-debugging-technique-is-to-explain-your-code-to/#quotation",
            "image": {
                "@type": "ImageObject",
                "@id": "https://sms4smile.com/quotes/i/fb9/brian-kernighan-27197_bears_another-effective-debugging-technique-is_1618728.jpg",
                "contentUrl": "https://sms4smile.com/quotes/i/fb9/brian-kernighan-27197_bears_another-effective-debugging-technique-is_1618728.jpg",
                "url": "https://sms4smile.com/quotes/i/fb9/brian-kernighan-27197_bears_another-effective-debugging-technique-is_1618728.jpg",
                "width": 1080,
                "height": 1080,
                "caption": "“Another effective [debugging] technique is to explain your code to someone else. This will often cause you…” — 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": "Another effective [debugging] technique is to...",
                    "item": "https://sms4smile.com/quotes/brian-kernighan/another-effective-debugging-technique-is-to-explain-your-code-to/"
                }
            ],
            "@id": "https://sms4smile.com/quotes/brian-kernighan/another-effective-debugging-technique-is-to-explain-your-code-to/#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
            }
        }
    ]
}
```
