---
title: "Meaning & Key Takeaway of: There are two ways to write error-free…"
description: "\"There are two ways to write error-free programs; only the third one works.\" — Alan Perlis"
image: "https://sms4smile.com/quotes/i/1c3/alan-perlis-11812_programming_there-are-two-ways-to-write-error-free-p_2967357.png"
---

#  There are two ways to write error-free programs; only the…

![“There are two ways to write error-free programs; only the third one works.” quote by Alan Perlis](https://sms4smile.com/quotes/i/1c3/alan-perlis-11812_programming_there-are-two-ways-to-write-error-free-p_2967357.png)   [Download](https://sms4smile.com/quotes/i/1c3/alan-perlis-11812_programming_there-are-two-ways-to-write-error-free-p_2967357.png) [Open image](https://sms4smile.com/quotes/i/1c3/alan-perlis-11812_programming_there-are-two-ways-to-write-error-free-p_2967357.png)

> “There are two ways to write error-free programs; only the third one works.”

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

## About This Quote

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

There are two ways to write error‑free programs; only the third way works, implying that a third, unconventional approach is needed.

**In simple terms:** Standard methods fail; a novel method succeeds.

Key Takeaway

Seek creative solutions beyond conventional methods.

Themes

programming creativity problem solving

Mood

analytical playful

Type

technical philosophical

When to use this quote

- software development
- debugging
- research
- teaching

Key Concepts

Algorithmic thinking innovation

Questions to Reflect On

- What “third way” have you discovered?
- When do you break from standard practice?

A Different Perspective

May be tongue‑in‑cheek, not literal.

★ ★ ★ ★ ★   No ratings yet

[Programming](https://sms4smile.com/quotes/about/programming/) [Technology](https://sms4smile.com/quotes/about/technology/)

## Related quotes

> [There are thousands and thousands of free programs available for people of any income level.](https://sms4smile.com/quotes/matthew-lesko/there-are-thousands-and-thousands-of-free-programs-available-for/)

[Matthew Lesko](https://sms4smile.com/quotes/author/matthew-lesko/)

> [During 1989, my mother, who was exceedingly good at finding these free programs - you know, we were on welfare, just trying to get…](https://sms4smile.com/quotes/kehinde-wiley/during-1989-my-mother-who-was-exceedingly-good-at-finding-these-free/)

[Kehinde Wiley](https://sms4smile.com/quotes/author/kehinde-wiley/)

> [It's hard enough to find an error in your code when you're looking for it; it's even harder when you've assumed your code is…](https://sms4smile.com/quotes/steve-mcconnell/it-s-hard-enough-to-find-an-error-in-your-code-when-you-re-looking/)

[Steve McConnell](https://sms4smile.com/quotes/author/steve-mcconnell/)

> [We strive for error-free medicine in a world that is sometimes all too human.](https://sms4smile.com/quotes/anonymous/we-strive-for-error-free-medicine-in-a-world-that-is-sometimes-all/)

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

> [The most efficient way to memorise a piece is to use the one which proceeds in an error free manner](https://sms4smile.com/quotes/sergei-rachmaninoff/the-most-efficient-way-to-memorise-a-piece-is-to-use-the-one-which/)

[Sergei Rachmaninoff](https://sms4smile.com/quotes/author/sergei-rachmaninoff/)

> [No one who lives in error is free.](https://sms4smile.com/quotes/euripides/no-one-who-lives-in-error-is-free/)

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

> [“Trying to achieve an error-free manuscript is almost like trying to fly to the moon on a paper airplane.”](https://sms4smile.com/quotes/jon-michael-riley/trying-to-achieve-an-error-free-manuscript-is-almost-like-trying-to/)

Jon Michael Riley

> [Success tends to go not to the person who is error-free, because he also tends to be risk-averse. Rather it goes to the person…](https://sms4smile.com/quotes/donald-rumsfeld/success-tends-to-go-not-to-the-person-who-is-error-free-because-he/)

[Donald Rumsfeld](https://sms4smile.com/quotes/author/donald-rumsfeld/)

> [There are as many different ways to write a novel as there are varieties of human consciousness, so I am totally delighted if people…](https://sms4smile.com/quotes/emily-barton/there-are-as-many-different-ways-to-write-a-novel-as-there-are/)

[Emily Barton](https://sms4smile.com/quotes/author/emily-barton/)

> [There are as many ways to write songs as there are songs.](https://sms4smile.com/quotes/gregg-allman/there-are-as-many-ways-to-write-songs-as-there-are-songs/)

[Gregg Allman](https://sms4smile.com/quotes/author/gregg-allman/)

> [I've been writing for so long I got a lot of different ways to write.](https://sms4smile.com/quotes/rakim/i-ve-been-writing-for-so-long-i-got-a-lot-of-different-ways-to-write/)

[Rakim](https://sms4smile.com/quotes/author/rakim/)

> [There's many, many ways to write a song. But generally, sitting down at a table and writing is not one of them.](https://sms4smile.com/quotes/john-lydon/there-s-many-many-ways-to-write-a-song-but-generally-sitting-down-at/)

[John Lydon](https://sms4smile.com/quotes/author/john-lydon/)

> [If anything this is one of the better ways to write together and not get stuck in the studio. Its a really good, open-ended…](https://sms4smile.com/quotes/medeski-martin-and-wood/if-anything-this-is-one-of-the-better-ways-to-write-together-and-not/)

[Medeski Martin And Wood](https://sms4smile.com/quotes/author/medeski-martin-and-wood/)

> [Every writer writes in different ways, and so some write the music first, while others write the lyrics first, and some write while they…](https://sms4smile.com/quotes/valerie-june/every-writer-writes-in-different-ways-and-so-some-write-the-music/)

[Valerie June](https://sms4smile.com/quotes/author/valerie-june/)

> [3 Ways to write in EXAM: Look up for INSPIRATION Look down for CONCENTRATION &amp; Look around for INFORMATION!](https://sms4smile.com/quotes/nishan-panwar/3-ways-to-write-in-exam-look-up-for-inspiration-look-down-for/)

[Nishan Panwar](https://sms4smile.com/quotes/author/nishan-panwar/)

## More by Alan Perlis

> [You can measure a programmer's perspective by noting his attitude on the continuing vitality of FORTRAN.](https://sms4smile.com/quotes/alan-perlis/you-can-measure-a-programmer-s-perspective-by-noting-his-attitude-on/)

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

> [In English every word can be verbed. Would that it were so in our programming languages.](https://sms4smile.com/quotes/alan-perlis/in-english-every-word-can-be-verbed-would-that-it-were-so-in-our/)

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

> [LISP programmers know the value of everything and the cost of nothing.](https://sms4smile.com/quotes/alan-perlis/lisp-programmers-know-the-value-of-everything-and-the-cost-of-nothing/)

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

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

> [Simplicity does not precede complexity, but follows it.](https://sms4smile.com/quotes/alan-perlis/simplicity-does-not-precede-complexity-but-follows-it/)

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

> [Optimization hinders evolution. Everything should be built top-down, except the first time. Simplicity does not precede complexity, but follows it.](https://sms4smile.com/quotes/alan-perlis/optimization-hinders-evolution-everything-should-be-built-top-down/)

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

> [The computing field is always in need of new cliches.](https://sms4smile.com/quotes/alan-perlis/the-computing-field-is-always-in-need-of-new-cliches/)

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

> [Fools ignore complexity. Pragmatists suffer it. Some can avoid it. Geniuses remove it.](https://sms4smile.com/quotes/alan-perlis/fools-ignore-complexity-pragmatists-suffer-it-some-can-avoid-it/)

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

> [A programming language is low level when its programs require attention to the irrelevant.](https://sms4smile.com/quotes/alan-perlis/a-programming-language-is-low-level-when-its-programs-require/)

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

> [Syntactic sugar causes cancer of the semicolon.](https://sms4smile.com/quotes/alan-perlis/syntactic-sugar-causes-cancer-of-the-semicolon/)

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

> [When a professor insists computer science is X but not Y, have compassion for his graduate students.](https://sms4smile.com/quotes/alan-perlis/when-a-professor-insists-computer-science-is-x-but-not-y-have/)

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

> [A year spent in artificial intelligence is enough to make one believe in God.](https://sms4smile.com/quotes/alan-perlis/a-year-spent-in-artificial-intelligence-is-enough-to-make-one-believe/)

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

> [In software systems it is often the early bird that makes the worm.](https://sms4smile.com/quotes/alan-perlis/in-software-systems-it-is-often-the-early-bird-that-makes-the-worm/)

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

> [In man-machine symbiosis, it is man who must adjust: The machines can't.](https://sms4smile.com/quotes/alan-perlis/in-man-machine-symbiosis-it-is-man-who-must-adjust-the-machines-can-t/)

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

> [Every program has two purposes: The one for which it was written and another for which it wasn't.](https://sms4smile.com/quotes/alan-perlis/every-program-has-two-purposes-the-one-for-which-it-was-written-and/)

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

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

## More Programming quotes

> [Of everything I have done, 'The Archers' always gets the most excitement; there's a sort of uncontrollable joy from fans of the program.](https://sms4smile.com/quotes/felicity-jones/of-everything-i-have-done-the-archers-always-gets-the-most-excitement/)

[Felicity Jones](https://sms4smile.com/quotes/author/felicity-jones/)

> [When we shipped 'Borderlands 2,' we didn't ship it with a plan of how the level cap was going to increase. We didn't have…](https://sms4smile.com/quotes/randy-pitchford/when-we-shipped-borderlands-2-we-didn-t-ship-it-with-a-plan-of-how/)

[Randy Pitchford](https://sms4smile.com/quotes/author/randy-pitchford/)

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

> [“Check the program before you two start undressing and...well, doing whatever freaky shit you talked Harley into.” I”](https://sms4smile.com/quotes/james-cox/check-the-program-before-you-two-start-undressing-and-well-doing/)

[James Cox](https://sms4smile.com/quotes/author/james-cox/)

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

> [Limit use of shareware and public domain software to systems without fixed disks. If you do use them on fixed disks, allocate separate subdirectories...…](https://sms4smile.com/quotes/john-mcafee/limit-use-of-shareware-and-public-domain-software-to-systems-without/)

[John McAfee](https://sms4smile.com/quotes/author/john-mcafee/)

> [I'm publicist, patron of nine charities, creative director, food consultant, recipe developer - and mum.](https://sms4smile.com/quotes/jack-monroe/i-m-publicist-patron-of-nine-charities-creative-director-food/)

[Jack Monroe](https://sms4smile.com/quotes/author/jack-monroe/)

> [With VR, we have this same vision, which is create this ultimate platform for sharing your imagination. Our huge community of 300,000 developers creates…](https://sms4smile.com/quotes/david-baszucki/with-vr-we-have-this-same-vision-which-is-create-this-ultimate/)

[David Baszucki](https://sms4smile.com/quotes/author/david-baszucki/)

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

> [A lot of the kids gave a lot of positive feedback about if I ever became a coach, they would love to play in…](https://sms4smile.com/quotes/penny-hardaway/a-lot-of-the-kids-gave-a-lot-of-positive-feedback-about-if-i-ever/)

[Penny Hardaway](https://sms4smile.com/quotes/author/penny-hardaway/)

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

> [“By rendering the model in ASN.1, the NCBI created a system that combined objects (DNA sequences, protein sequences, references, sequence features) from a variety…](https://sms4smile.com/quotes/anonymous/by-rendering-the-model-in-asn-1-the-ncbi-created-a-system-that/)

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

[Browse all 6,477 Programming quotes ](https://sms4smile.com/quotes/about/programming/)

```json
{
    "@context": "https://schema.org",
    "@graph": [
        {
            "@type": "Quotation",
            "text": "There are two ways to write error-free programs; only the third one works.",
            "creator": {
                "@type": "Person",
                "name": "Alan Perlis"
            },
            "isPartOf": {
                "@id": "https://sms4smile.com/quotes/#website"
            },
            "url": "https://sms4smile.com/quotes/alan-perlis/there-are-two-ways-to-write-error-free-programs-only-the-third-one/",
            "about": {
                "@type": "Thing",
                "name": "Programming"
            },
            "@id": "https://sms4smile.com/quotes/alan-perlis/there-are-two-ways-to-write-error-free-programs-only-the-third-one/#quotation",
            "image": {
                "@type": "ImageObject",
                "@id": "https://sms4smile.com/quotes/i/1c3/alan-perlis-11812_programming_there-are-two-ways-to-write-error-free-p_2967357.png",
                "contentUrl": "https://sms4smile.com/quotes/i/1c3/alan-perlis-11812_programming_there-are-two-ways-to-write-error-free-p_2967357.png",
                "url": "https://sms4smile.com/quotes/i/1c3/alan-perlis-11812_programming_there-are-two-ways-to-write-error-free-p_2967357.png",
                "width": 1080,
                "height": 1080,
                "caption": "“There are two ways to write error-free programs; only the third one works.” — Alan Perlis",
                "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": "Alan Perlis",
                    "item": "https://sms4smile.com/quotes/author/alan-perlis/"
                },
                {
                    "@type": "ListItem",
                    "position": 4,
                    "name": "There are two ways to write...",
                    "item": "https://sms4smile.com/quotes/alan-perlis/there-are-two-ways-to-write-error-free-programs-only-the-third-one/"
                }
            ],
            "@id": "https://sms4smile.com/quotes/alan-perlis/there-are-two-ways-to-write-error-free-programs-only-the-third-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
            }
        }
    ]
}
```
