---
title: "If you have a procedure with 10 parameters, you probably missed some. — Alan Perlis Quote #11 | QuotesBy.net"
description: "If you have a procedure with 10 parameters, you probably missed some. — a quote by Alan Perlis."
image: "https://quotesby.net/wp-content/themes/quotesby-editorial/assets/og-default.png"
---

> # If you have a procedure with 10 parameters, you probably missed some.

[Alan Perlis](https://quotesby.net/Alan-Perlis)\#11

[Complexity](https://quotesby.net/Alan-Perlis/complexity/)[Simplification](https://quotesby.net/topics/simplification/)

[WhatsApp (opens in a new tab)](https://wa.me/?text=%E2%80%9CIf%20you%20have%20a%20procedure%20with%2010%20parameters%2C%20you%20probably%20missed%20some.%E2%80%9D%20%E2%80%94%20Alan%20Perlis%20https%3A%2F%2Fquotesby.net%2FAlan-Perlis%2F11%2F)[X (opens in a new tab)](https://twitter.com/intent/tweet?text=%E2%80%9CIf%20you%20have%20a%20procedure%20with%2010%20parameters%2C%20you%20probably%20missed%20some.%E2%80%9D%20%E2%80%94%20Alan%20Perlis&url=https%3A%2F%2Fquotesby.net%2FAlan-Perlis%2F11%2F)[Facebook (opens in a new tab)](https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fquotesby.net%2FAlan-Perlis%2F11%2F)

## About this quote

What does it mean?Complex procedures often fail because they try to do too much.In plain termsToo many parameters mean the code is too complex.What can you take from it?Simplify functions by reducing parameters.

### Where it applies

- code review
- writing functions
- debugging

### Putting it to work

- refactor functions
- reduce parameters

### Questions to consider

- Is your function too big?
- Can you group these inputs?

### Another view

Sometimes many parameters are necessary for APIs.

## More from Alan Perlis

1. > If a listener nods his head when you're explaining your program, wake him up.

[Permalink to quote \#10](https://quotesby.net/Alan-Perlis/10/ "Permalink to quote 10")
2. > In computing, turning the obvious into the useful is a living definition of the word 'frustration'.

[Permalink to quote \#12](https://quotesby.net/Alan-Perlis/12/ "Permalink to quote 12")
3. > I think it is inevitable that people program poorly. Training will not substantially help matters. We have to learn to live with it.

[Permalink to quote \#9](https://quotesby.net/Alan-Perlis/9/ "Permalink to quote 9")

## Related quotes

1. > Science may be described as the art of systematic over-simplification - the art of discerning what we may with advantage omit.

[Karl Popper](https://quotesby.net/Karl-Popper)[Karl Popper quote \#8](https://quotesby.net/Karl-Popper/8/ "Permalink to quote 8")
2. > Everything is explicable in the terms of the behavior of a small child.

[Stanislaw Lem](https://quotesby.net/Stanislaw-Lem)[Stanislaw Lem quote \#14](https://quotesby.net/Stanislaw-Lem/14/ "Permalink to quote 14")
3. > There are probably better ways to do that, but it would make the parser more complex. I do, occasionally, struggle feebly against complexity... :-)

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

```json
{
    "@context": "https://schema.org",
    "@type": "Quotation",
    "text": "If you have a procedure with 10 parameters, you probably missed some.",
    "url": "https://quotesby.net/Alan-Perlis/11/",
    "spokenByCharacter": {
        "@type": "Person",
        "name": "Alan Perlis"
    }
}
{
    "@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": "Alan Perlis",
            "item": "https://quotesby.net/Alan-Perlis"
        },
        {
            "@type": "ListItem",
            "position": 4,
            "name": "Quote #11",
            "item": "https://quotesby.net/Alan-Perlis/11/"
        }
    ]
}
```
