---
title: "#define NULL 0 /* silly thing is, we don't even use this */ — Larry Wall Quote #238 | QuotesBy.net"
description: "#define NULL 0 /* silly thing is, we don't even use this */ — a quote by Larry Wall."
image: "https://quotesby.net/wp-content/themes/quotesby-editorial/assets/og-default.png"
---

> # \#define NULL 0 /\* silly thing is, we don't even use this \*/

[Larry Wall](https://quotesby.net/Larry-Wall)\#238

[Programming](https://quotesby.net/Larry-Wall/programming/)[Maintenance](https://quotesby.net/Larry-Wall/maintenance/)[Code quality](https://quotesby.net/Larry-Wall/code-quality/)

[WhatsApp (opens in a new tab)](https://wa.me/?text=%E2%80%9C%23define%20NULL%200%20%2F%2A%20silly%20thing%20is%2C%20we%20don%27t%20even%20use%20this%20%2A%2F%E2%80%9D%20%E2%80%94%20Larry%20Wall%20https%3A%2F%2Fquotesby.net%2FLarry-Wall%2F238%2F)[X (opens in a new tab)](https://twitter.com/intent/tweet?text=%E2%80%9C%23define%20NULL%200%20%2F%2A%20silly%20thing%20is%2C%20we%20don%27t%20even%20use%20this%20%2A%2F%E2%80%9D%20%E2%80%94%20Larry%20Wall&url=https%3A%2F%2Fquotesby.net%2FLarry-Wall%2F238%2F)[Facebook (opens in a new tab)](https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fquotesby.net%2FLarry-Wall%2F238%2F)

## About this quote

What does it mean?The macro defines NULL as 0 and jokes that the definition is unnecessary because it's never used.In plain termsNULL is defined but not used.What can you take from it?Avoid defining things you never need.

### Where it applies

- large codebases
- legacy systems

### Putting it to work

- remove unused macros
- audit definitions regularly

### Questions to consider

- When should you keep unused code?
- How does unused code affect maintenance?

### Another view

Sometimes definitions are kept for future compatibility.

## More from Larry Wall

1. > double value; /\* or your money back! \*/ short changed; /\* so triple your money back! \*/

[Permalink to quote \#236](https://quotesby.net/Larry-Wall/236/ "Permalink to quote 236")
2. > I think I'm happier with that. $rubyometer += 0.3 or so. :-)

[Permalink to quote \#235](https://quotesby.net/Larry-Wall/235/ "Permalink to quote 235")
3. > /\* And you'll never guess what the dog had \*/ /\* in its mouth... \*/

[Permalink to quote \#241](https://quotesby.net/Larry-Wall/241/ "Permalink to quote 241")

## Related quotes

1. > Though I'll admit readability suffers slightly...

[Larry Wall](https://quotesby.net/Larry-Wall)[Larry Wall quote \#25](https://quotesby.net/Larry-Wall/25/ "Permalink to quote 25")
2. > The worst programs are the ones where the programmers doing the original work don't lay a solid foundation, and then they're not involved in the program in the…

[Bill Gates](https://quotesby.net/Bill-Gates)[Bill Gates quote \#42](https://quotesby.net/Bill-Gates/42/ "Permalink to quote 42")
3. > I will, in fact, claim that the difference between a bad programmer and a good one is whether he considers his code or his data structures more important. Bad …

[Linus Torvalds](https://quotesby.net/Linus-Torvalds)[Linus Torvalds quote \#49](https://quotesby.net/Linus-Torvalds/49/ "Permalink to quote 49")

```json
{
    "@context": "https://schema.org",
    "@type": "Quotation",
    "text": "#define NULL 0 /* silly thing is, we don't even use this */",
    "url": "https://quotesby.net/Larry-Wall/238/",
    "spokenByCharacter": {
        "@type": "Person",
        "name": "Larry Wall"
    }
}
{
    "@context": "https://schema.org",
    "@type": "BreadcrumbList",
    "itemListElement": [
        {
            "@type": "ListItem",
            "position": 1,
            "name": "Home",
            "item": "https://quotesby.net/"
        },
        {
            "@type": "ListItem",
            "position": 2,
            "name": "Authors",
            "item": "https://quotesby.net/authors/"
        },
        {
            "@type": "ListItem",
            "position": 3,
            "name": "Larry Wall",
            "item": "https://quotesby.net/Larry-Wall"
        },
        {
            "@type": "ListItem",
            "position": 4,
            "name": "Quote #238",
            "item": "https://quotesby.net/Larry-Wall/238/"
        }
    ]
}
```
