---
title: "Meaning & Key Takeaway of: I couldn't resist the temptation to put…"
description: "\"I couldn't resist the temptation to put in a null reference, simply because it was so easy to implement. This has led to innumerable errors, vulnerabil..."
image: "https://sms4smile.com/quotes/i/7a8/tony-hoare-25834_billions_i-couldn-t-resist-the-temptation-to-put_2853307.png"
---

#  I couldn't resist the temptation to put in a null…

![“I couldn't resist the temptation to put in a null reference, simply because it was so easy to implement. This has led to innumerable errors, vulnerabilities, and system crashes, which have probably caused a billion dollars of pain and damage in the last forty years.” quote by Tony Hoare](https://sms4smile.com/quotes/i/7a8/tony-hoare-25834_billions_i-couldn-t-resist-the-temptation-to-put_2853307.png)   [Download](https://sms4smile.com/quotes/i/7a8/tony-hoare-25834_billions_i-couldn-t-resist-the-temptation-to-put_2853307.png) [Open image](https://sms4smile.com/quotes/i/7a8/tony-hoare-25834_billions_i-couldn-t-resist-the-temptation-to-put_2853307.png)

> “I couldn't resist the temptation to put in a null reference, simply because it was so easy to implement. This has led to innumerable errors, vulnerabilities, and system crashes, which have probably caused a billion dollars of pain and damage in the last forty years.”

[Tony Hoare](https://sms4smile.com/quotes/author/tony-hoare/)

## About This Quote

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

Using null references for convenience leads to widespread bugs and costly failures.

**In simple terms:** Nulls cause many errors and damage.

Key Takeaway

Avoid nulls; use safer alternatives.

Themes

software reliability error handling design patterns

Mood

cautionary technical

Type

practical educational

When to use this quote

- code reviews
- system architecture
- testing
- maintenance

Key Concepts

null safety type systems

Questions to Reflect On

- What strategies replace nulls safely?
- How can teams refactor existing null-heavy code?

A Different Perspective

Legacy code may still rely on nulls, making transition hard.

★ ★ ★ ★ ★   No ratings yet

[Billions](https://sms4smile.com/quotes/about/billions/) [Crash](https://sms4smile.com/quotes/about/crash/) [Damage](https://sms4smile.com/quotes/about/damage/) [Dollars](https://sms4smile.com/quotes/about/dollars/) [Easy](https://sms4smile.com/quotes/about/easy/) [Errors](https://sms4smile.com/quotes/about/errors/) [Errors Vulnerabilities](https://sms4smile.com/quotes/about/errors-vulnerabilities-3809211/) [Forty](https://sms4smile.com/quotes/about/forty/) [Innumerable Errors](https://sms4smile.com/quotes/about/innumerable-errors-3809208/) [Lasts](https://sms4smile.com/quotes/about/lasts/) [Null](https://sms4smile.com/quotes/about/null/) [Null Reference](https://sms4smile.com/quotes/about/null-reference-3809207/) [Pain](https://sms4smile.com/quotes/about/pain/) [Reference Simply](https://sms4smile.com/quotes/about/reference-simply-3809209/) [Technology](https://sms4smile.com/quotes/about/technology/) [Temptation](https://sms4smile.com/quotes/about/temptation/) [Vulnerabilities Crashes](https://sms4smile.com/quotes/about/vulnerabilities-crashes-3809210/) [Vulnerability](https://sms4smile.com/quotes/about/vulnerability/) [Years](https://sms4smile.com/quotes/about/years/)

## Related quotes

> [I call it my billion-dollar mistake. It was the invention of the null reference in 1965.](https://sms4smile.com/quotes/tony-hoare/i-call-it-my-billion-dollar-mistake-it-was-the-invention-of-the-null/)

[Tony Hoare](https://sms4smile.com/quotes/author/tony-hoare/)

> [Professor von Mises has a splendid analytical mind and an admirable passion for liberty; but as a student of human nature he is worse…](https://sms4smile.com/quotes/ludwig-von-mises/professor-von-mises-has-a-splendid-analytical-mind-and-an-admirable/)

[Ludwig von Mises](https://sms4smile.com/quotes/author/ludwig-von-mises/)

> [Every discrimination against women in the constitutions and laws of the several States is today null and void, precisely as in every one against…](https://sms4smile.com/quotes/susan-b-anthony/every-discrimination-against-women-in-the-constitutions-and-laws-of/)

[Susan B. Anthony](https://sms4smile.com/quotes/author/susan-b-anthony/)

> [God's word will NEVER come back null and void.](https://sms4smile.com/quotes/anonymous/god-s-word-will-never-come-back-null-and-void/)

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

> [In masturbation there is nothing but loss. There is no reciprocity. There is merely the spending away of a certain force, and no return.…](https://sms4smile.com/quotes/anonymous/in-masturbation-there-is-nothing-but-loss-there-is-no-reciprocity/)

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

> [Not so much anymore but some years ago in my homeland there was a habit, something called 'casamiento de apuro,' a marriage in haste…](https://sms4smile.com/quotes/pope-francis/not-so-much-anymore-but-some-years-ago-in-my-homeland-there-was-a/)

[Pope Francis](https://sms4smile.com/quotes/author/pope-francis/)

> [When human laws contradict or discountenance the means, which are necessary to preserve the essential rights of any society, they defeat the proper end…](https://sms4smile.com/quotes/alexander-hamilton/when-human-laws-contradict-or-discountenance-the-means-which-are/)

[Alexander Hamilton](https://sms4smile.com/quotes/author/alexander-hamilton/)

> [Anarchism is the only philosophy which brings to man the consciousness of himself; which maintains that God, the State, and society are non-existent, that…](https://sms4smile.com/quotes/emma-goldman/anarchism-is-the-only-philosophy-which-brings-to-man-the/)

[Emma Goldman](https://sms4smile.com/quotes/author/emma-goldman/)

> [Throughout the 1960s and 1970s devoted Beckett readers greeted each successively shorter volume from the master with a mixture of awe and apprehensiveness; it…](https://sms4smile.com/quotes/john-banville/throughout-the-1960s-and-1970s-devoted-beckett-readers-greeted-each/)

[John Banville](https://sms4smile.com/quotes/author/john-banville/)

> [Every law of matter or the body, supposed to govern man,is rendered null and void by the law of Life, God.](https://sms4smile.com/quotes/mary-baker-eddy/every-law-of-matter-or-the-body-supposed-to-govern-man-is-rendered/)

[Mary Baker Eddy](https://sms4smile.com/quotes/author/mary-baker-eddy/)

> [There shall never be one lost good! What was, shall live as before; The evil is null, is nought, is silence implying sound; What…](https://sms4smile.com/quotes/robert-browning/there-shall-never-be-one-lost-good-what-was-shall-live-as-before-the/)

[Robert Browning](https://sms4smile.com/quotes/author/robert-browning/)

> [Due to the oath I swore to the constitution when I enlisted in the United States Marine Corps, by virtue of the universal human…](https://sms4smile.com/quotes/adam-kokesh/due-to-the-oath-i-swore-to-the-constitution-when-i-enlisted-in-the/)

[Adam Kokesh](https://sms4smile.com/quotes/author/adam-kokesh/)

> [And don't tell me there isn't one bit of difference between null and space, because that's exactly how much difference there is.](https://sms4smile.com/quotes/larry-wall/and-don-t-tell-me-there-isn-t-one-bit-of-difference-between-null-and/)

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

> [Mathematics can remove no prejudices and soften no obduracy. It has no influence in sweetening the bitter strife of parties, and in the moral…](https://sms4smile.com/quotes/johann-wolfgang-von-goethe/mathematics-can-remove-no-prejudices-and-soften-no-obduracy-it-has-no/)

[Johann Wolfgang von Goethe](https://sms4smile.com/quotes/author/johann-wolfgang-von-goethe/)

> [All religious vows, codes, and commitments are null &amp; void herein. Please refrain from contaminating the ideosphere with harmful memes through prayer, reverence, holy…](https://sms4smile.com/quotes/greg-erwin/all-religious-vows-codes-and-commitments-are-null-void-herein-please/)

[Greg Erwin](https://sms4smile.com/quotes/author/greg-erwin/)

## More by Tony Hoare

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

> [The job of formal methods is to elucidate the assumptions upon which formal correctness depends.](https://sms4smile.com/quotes/tony-hoare/the-job-of-formal-methods-is-to-elucidate-the-assumptions-upon-which/)

[Tony Hoare](https://sms4smile.com/quotes/author/tony-hoare/)

> [A single human brain has about a hundred million nerve cells... and a computer program that throws light on the mind/brain problem will have…](https://sms4smile.com/quotes/tony-hoare/a-single-human-brain-has-about-a-hundred-million-nerve-cells-and-a/)

[Tony Hoare](https://sms4smile.com/quotes/author/tony-hoare/)

> [I don't know what the language of the year 2000 will look like, but I know it will be called Fortran.](https://sms4smile.com/quotes/tony-hoare/i-don-t-know-what-the-language-of-the-year-2000-will-look-like-but-i/)

[Tony Hoare](https://sms4smile.com/quotes/author/tony-hoare/)

> [You cannot teach beginners top-down programming, because they don't know which end is up.](https://sms4smile.com/quotes/tony-hoare/you-cannot-teach-beginners-top-down-programming-because-they-don-t/)

[Tony Hoare](https://sms4smile.com/quotes/author/tony-hoare/)

> [An ultimate joint challenge for the biological and the computational sciences is the understanding of the mechanisms of the human brain, and its relationship…](https://sms4smile.com/quotes/tony-hoare/an-ultimate-joint-challenge-for-the-biological-and-the-computational/)

[Tony Hoare](https://sms4smile.com/quotes/author/tony-hoare/)

> [The unavoidable price of reliability is simplicity.](https://sms4smile.com/quotes/tony-hoare/the-unavoidable-price-of-reliability-is-simplicity/)

[Tony Hoare](https://sms4smile.com/quotes/author/tony-hoare/)

> [ What is the central core of the subject \[computer science\]? What is it that distinguishes it from the separate subjects with which it is… ](https://sms4smile.com/quotes/tony-hoare/what-is-the-central-core-of-the-subject-computer-science-what-is-it/)

[Tony Hoare](https://sms4smile.com/quotes/author/tony-hoare/)

> [The real value of tests is not that they detect bugs in the code but that they detect inadequacies in the methods, concentration, and…](https://sms4smile.com/quotes/tony-hoare/the-real-value-of-tests-is-not-that-they-detect-bugs-in-the-code-but/)

[Tony Hoare](https://sms4smile.com/quotes/author/tony-hoare/)

> [Inside every large program is a small program struggling to get out.](https://sms4smile.com/quotes/tony-hoare/inside-every-large-program-is-a-small-program-struggling-to-get-out/)

[Tony Hoare](https://sms4smile.com/quotes/author/tony-hoare/)

> [Here is a language so far ahead of its time, that it was not only an improvement on its predecessors, but also on nearly…](https://sms4smile.com/quotes/tony-hoare/here-is-a-language-so-far-ahead-of-its-time-that-it-was-not-only-an/)

[Tony Hoare](https://sms4smile.com/quotes/author/tony-hoare/)

> [I call it my billion-dollar mistake. It was the invention of the null reference in 1965.](https://sms4smile.com/quotes/tony-hoare/i-call-it-my-billion-dollar-mistake-it-was-the-invention-of-the-null/)

[Tony Hoare](https://sms4smile.com/quotes/author/tony-hoare/)

> [It is easy to predict that some of the discoveries of research directed towards Grand Challenges - but only the most unexpected ones, and…](https://sms4smile.com/quotes/tony-hoare/it-is-easy-to-predict-that-some-of-the-discoveries-of-research/)

[Tony Hoare](https://sms4smile.com/quotes/author/tony-hoare/)

> [There are two methods in software design. One is to make the program so simple, there are obviously no errors. The other is to…](https://sms4smile.com/quotes/tony-hoare/there-are-two-methods-in-software-design-one-is-to-make-the-program/)

[Tony Hoare](https://sms4smile.com/quotes/author/tony-hoare/)

> [Some problems are better evaded than solved.](https://sms4smile.com/quotes/tony-hoare/some-problems-are-better-evaded-than-solved/)

[Tony Hoare](https://sms4smile.com/quotes/author/tony-hoare/)

[Explore all 22 Tony Hoare quotes ](https://sms4smile.com/quotes/author/tony-hoare/)

## More Billions quotes

> [If I had a dollar for every time I couldn’t sleep, I could buy a billion locks and finally read a book in peace.](https://sms4smile.com/quotes/aesop-rock/if-i-had-a-dollar-for-every-time-i-couldn-t-sleep-i-could-buy-a/)

[Aesop Rock](https://sms4smile.com/quotes/author/aesop-rock/)

> [As far as Japan is concerned, I want to help all of our allies, but we are losing billions and billions of dollars. We…](https://sms4smile.com/quotes/donald-trump/as-far-as-japan-is-concerned-i-want-to-help-all-of-our-allies-but-we/)

[Donald Trump](https://sms4smile.com/quotes/author/donald-trump/)

> [The universe is simmering down, like a giant stew left to cook for four billion years. Sooner or later we won’t be able to…](https://sms4smile.com/quotes/arthur-bloch/the-universe-is-simmering-down-like-a-giant-stew-left-to-cook-for/)

[Arthur Bloch](https://sms4smile.com/quotes/author/arthur-bloch/)

> [Right now, the government is spending billions of dollars supporting the problem-makers in the U.S. economy - the polluters, despoilers, incarcerators, and warmongers.](https://sms4smile.com/quotes/van-jones/right-now-the-government-is-spending-billions-of-dollars-supporting/)

[Van Jones](https://sms4smile.com/quotes/author/van-jones/)

> [If Jesus is the Son of God in human flesh, He's one of a kind of the 13 billions of people who have ever lived.](https://sms4smile.com/quotes/tim-lahaye/if-jesus-is-the-son-of-god-in-human-flesh-he-s-one-of-a-kind-of-the/)

[Tim LaHaye](https://sms4smile.com/quotes/author/tim-lahaye/)

> [Here we were talking about economic development, about investing billions of dollars in various programs, and I could see it wasn't billions of dollars…](https://sms4smile.com/quotes/muhammad-yunus/here-we-were-talking-about-economic-development-about-investing/)

[Muhammad Yunus](https://sms4smile.com/quotes/author/muhammad-yunus/)

> [Everyone thinks they've won the Magical Belief Lottery. Everyone thinks they more or less have a handle on things, that they, as opposed to…](https://sms4smile.com/quotes/r-scott-bakker/everyone-thinks-they-ve-won-the-magical-belief-lottery-everyone/)

[R. Scott Bakker](https://sms4smile.com/quotes/author/r-scott-bakker/)

> [Most neuroses and some psychoses can be traced to the unnecessary and unhealthy habit of daily wallowing in the troubles and sins of five…](https://sms4smile.com/quotes/robert-a-heinlein/most-neuroses-and-some-psychoses-can-be-traced-to-the-unnecessary-and/)

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

> [The technology involved in making anything invisible is so infinitely complex that nine hundred and ninety-nine billion, nine hundred and ninety-nine million, nine hundred…](https://sms4smile.com/quotes/douglas-adams/the-technology-involved-in-making-anything-invisible-is-so-infinitely/)

[Douglas Adams](https://sms4smile.com/quotes/author/douglas-adams/)

> [The idea of spontaneous generation of life in its present form is therefore highly improbable even to the scale of the billions of years…](https://sms4smile.com/quotes/ilya-prigogine/the-idea-of-spontaneous-generation-of-life-in-its-present-form-is/)

[Ilya Prigogine](https://sms4smile.com/quotes/author/ilya-prigogine/)

> [To defy heredity is to defy billions of years, to defy the first cell](https://sms4smile.com/quotes/emile-m-cioran/to-defy-heredity-is-to-defy-billions-of-years-to-defy-the-first-cell/)

[Emile M. Cioran](https://sms4smile.com/quotes/author/emile-m-cioran/)

> [When I look at the human brain I'm still in awe of it. Every single time you lift off the bone and open the…](https://sms4smile.com/quotes/benjamin-carson/when-i-look-at-the-human-brain-i-m-still-in-awe-of-it-every-single/)

[Benjamin Carson](https://sms4smile.com/quotes/author/benjamin-carson/)

> [Every one of us is, in the cosmic perspective, precious. If a human disagrees with you, let him live. In a hundred billion galaxies,…](https://sms4smile.com/quotes/carl-sagan/every-one-of-us-is-in-the-cosmic-perspective-precious-if-a-human/)

[Carl Sagan](https://sms4smile.com/quotes/author/carl-sagan/)

> [ We have the ability to take him \[President of Venezuela, Hugo Chavez\] out, and I think the time has come that we exercise that… ](https://sms4smile.com/quotes/pat-robertson/we-have-the-ability-to-take-him-president-of-venezuela-hugo-chavez/)

[Pat Robertson](https://sms4smile.com/quotes/author/pat-robertson/)

> [The buildings that were in question, they said in the same report, which was - actually, it wasn't even a bad story, to be…](https://sms4smile.com/quotes/donald-trump/the-buildings-that-were-in-question-they-said-in-the-same-report/)

[Donald Trump](https://sms4smile.com/quotes/author/donald-trump/)

[Browse all 1,864 Billions quotes ](https://sms4smile.com/quotes/about/billions/)

```json
{
    "@context": "https://schema.org",
    "@graph": [
        {
            "@type": "Quotation",
            "text": "I couldn't resist the temptation to put in a null reference, simply because it was so easy to implement. This has led to innumerable errors, vulnerabilities, and system crashes, which have probably caused a billion dollars of pain and damage in the last forty years.",
            "creator": {
                "@type": "Person",
                "name": "Tony Hoare"
            },
            "isPartOf": {
                "@id": "https://sms4smile.com/quotes/#website"
            },
            "url": "https://sms4smile.com/quotes/tony-hoare/i-couldn-t-resist-the-temptation-to-put-in-a-null-reference-simply/",
            "about": {
                "@type": "Thing",
                "name": "Billions"
            },
            "@id": "https://sms4smile.com/quotes/tony-hoare/i-couldn-t-resist-the-temptation-to-put-in-a-null-reference-simply/#quotation",
            "image": {
                "@type": "ImageObject",
                "@id": "https://sms4smile.com/quotes/i/7a8/tony-hoare-25834_billions_i-couldn-t-resist-the-temptation-to-put_2853307.png",
                "contentUrl": "https://sms4smile.com/quotes/i/7a8/tony-hoare-25834_billions_i-couldn-t-resist-the-temptation-to-put_2853307.png",
                "url": "https://sms4smile.com/quotes/i/7a8/tony-hoare-25834_billions_i-couldn-t-resist-the-temptation-to-put_2853307.png",
                "width": 1080,
                "height": 1080,
                "caption": "“I couldn't resist the temptation to put in a null reference, simply because it was so easy to implement…” — Tony Hoare",
                "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": "Tony Hoare",
                    "item": "https://sms4smile.com/quotes/author/tony-hoare/"
                },
                {
                    "@type": "ListItem",
                    "position": 4,
                    "name": "I couldn't resist the temptation to...",
                    "item": "https://sms4smile.com/quotes/tony-hoare/i-couldn-t-resist-the-temptation-to-put-in-a-null-reference-simply/"
                }
            ],
            "@id": "https://sms4smile.com/quotes/tony-hoare/i-couldn-t-resist-the-temptation-to-put-in-a-null-reference-simply/#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
            }
        }
    ]
}
```
