---
title: "Meaning & Key Takeaway of: You should imagine variables as…"
description: "\"“You should imagine variables as tentacles, rather than boxes. They do not contain values; they grasp them—two variables can refer to the same value.”\"..."
image: "https://sms4smile.com/quotes/i/715/marijn-haverbeke-55197_javascript_you-should-imagine-variables-as-tentacle_21992.jpg"
---

#  You should imagine variables as tentacles, rather than…

![“You should imagine variables as tentacles, rather than boxes. They do not contain values; they grasp them—two variables can refer to the same value.” quote by Marijn Haverbeke](https://sms4smile.com/quotes/i/715/marijn-haverbeke-55197_javascript_you-should-imagine-variables-as-tentacle_21992.jpg)   [Download](https://sms4smile.com/quotes/i/715/marijn-haverbeke-55197_javascript_you-should-imagine-variables-as-tentacle_21992.jpg) [Open image](https://sms4smile.com/quotes/i/715/marijn-haverbeke-55197_javascript_you-should-imagine-variables-as-tentacle_21992.jpg)

> ““You should imagine variables as tentacles, rather than boxes. They do not contain values; they grasp them—two variables can refer to the same value.””

[Marijn Haverbeke](https://sms4smile.com/quotes/author/marijn-haverbeke/)

## About This Quote

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

Variables are references that can point to the same data, not isolated containers.

**In simple terms:** Variables are references, not boxes.

Key Takeaway

Think of variables as pointers to values.

Themes

abstraction reference semantics programming concepts mental models software design

Mood

curiosity clarity

Type

analogy instructional

When to use this quote

- teaching programming
- debugging code
- designing APIs
- explaining scope
- learning functional languages

Key Concepts

reference mutability identity

Practical Applications

- educational material
- code documentation

Questions to Reflect On

- How does treating variables as references affect program reasoning?
- What pitfalls arise when multiple variables share a value?

★ ★ ★ ★ ★   No ratings yet

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

## Related quotes

> [“Software testing is a sport like hunting, it's bughunting.”](https://sms4smile.com/quotes/amit-kalantri/software-testing-is-a-sport-like-hunting-it-s-bughunting/)

[Amit Kalantri](https://sms4smile.com/quotes/author/amit-kalantri/)

> [The kind of programming that C provides will probably remain similar absolutely or slowly decline in usage, but relatively, JavaScript or its variants, or…](https://sms4smile.com/quotes/dennis-ritchie/the-kind-of-programming-that-c-provides-will-probably-remain-similar/)

[Dennis Ritchie](https://sms4smile.com/quotes/author/dennis-ritchie/)

> [JavaScript is the world's most misunderstood programming language.](https://sms4smile.com/quotes/douglas-crockford/javascript-is-the-world-s-most-misunderstood-programming-language/)

[Douglas Crockford](https://sms4smile.com/quotes/author/douglas-crockford/)

> [In JavaScript, there is a beautiful, elegant, highly expressive language that is buried under a steaming pile of good intentions and blunders.](https://sms4smile.com/quotes/douglas-crockford/in-javascript-there-is-a-beautiful-elegant-highly-expressive-language/)

[Douglas Crockford](https://sms4smile.com/quotes/author/douglas-crockford/)

> [A language like Ruby is a toolbox with some really neat little tools that do their job really nicely. JavaScript is a leather sheath…](https://sms4smile.com/quotes/nick-morgan/a-language-like-ruby-is-a-toolbox-with-some-really-neat-little-tools/)

[Nick Morgan](https://sms4smile.com/quotes/author/nick-morgan/)

> [I have been writing JavaScript for 8 years now, and I have never once found need to use an uber function. The super idea…](https://sms4smile.com/quotes/douglas-crockford/i-have-been-writing-javascript-for-8-years-now-and-i-have-never-once/)

[Douglas Crockford](https://sms4smile.com/quotes/author/douglas-crockford/)

> [Javascript is the duct tape of the Internet.](https://sms4smile.com/quotes/charlie-campbell/javascript-is-the-duct-tape-of-the-internet/)

[Charlie Campbell](https://sms4smile.com/quotes/author/charlie-campbell/)

> [JavaScript is the only language that I'm aware of that people feel they don't need to learn before they start using it.](https://sms4smile.com/quotes/douglas-crockford/javascript-is-the-only-language-that-i-m-aware-of-that-people-feel/)

[Douglas Crockford](https://sms4smile.com/quotes/author/douglas-crockford/)

> [We’re never gonna understand women. They’re way too complex. You’ve got too many variables to consider. PMS, bad hair days, miscellaneous mood swings .…](https://sms4smile.com/quotes/susane-colasanti/we-re-never-gonna-understand-women-they-re-way-too-complex-you-ve-got/)

[Susane Colasanti](https://sms4smile.com/quotes/author/susane-colasanti/)

> [Because what happens is, as the economy suffers, tax revenues go down. But unlike businesses, where at least your variable costs go down, in…](https://sms4smile.com/quotes/meg-whitman/because-what-happens-is-as-the-economy-suffers-tax-revenues-go-down/)

[Meg Whitman](https://sms4smile.com/quotes/author/meg-whitman/)

> [The difference is that we have the hardest and most painful evidence that there was a Holocaust. But, for the global warming scenario that…](https://sms4smile.com/quotes/thomas-sowell/the-difference-is-that-we-have-the-hardest-and-most-painful-evidence/)

[Thomas Sowell](https://sms4smile.com/quotes/author/thomas-sowell/)

> [There's a story about how the program is organized, there's a story about the context in which the program is expected to operate. And…](https://sms4smile.com/quotes/guy-steele/there-s-a-story-about-how-the-program-is-organized-there-s-a-story/)

[Guy Steele](https://sms4smile.com/quotes/author/guy-steele/)

> [Science manipulates things and gives up living in them. It makes its own limited models of things; operating upon these indices or variables to…](https://sms4smile.com/quotes/maurice-merleau-ponty/science-manipulates-things-and-gives-up-living-in-them-it-makes-its/)

[Maurice Merleau-Ponty](https://sms4smile.com/quotes/author/maurice-merleau-ponty/)

> [As a social and as a personal force, religion has become a dependent variable. It does not originate; it reacts. It does not denounce;…](https://sms4smile.com/quotes/c-wright-mills/as-a-social-and-as-a-personal-force-religion-has-become-a-dependent/)

[C. Wright Mills](https://sms4smile.com/quotes/author/c-wright-mills/)

> [As the variable capital always stays in the hands of the capitalist in some form or other, it cannot be claimed in any way…](https://sms4smile.com/quotes/karl-marx/as-the-variable-capital-always-stays-in-the-hands-of-the-capitalist/)

[Karl Marx](https://sms4smile.com/quotes/author/karl-marx/)

## More by Marijn Haverbeke

> [“The art of programming is the skill of controlling complexity.”](https://sms4smile.com/quotes/marijn-haverbeke/the-art-of-programming-is-the-skill-of-controlling-complexity/)

[Marijn Haverbeke](https://sms4smile.com/quotes/author/marijn-haverbeke/)

> [“Below the surface of the machine, the program moves. Without effort, it expands and contracts. In great harmony, electrons scatter and regroup. The forms…](https://sms4smile.com/quotes/marijn-haverbeke/below-the-surface-of-the-machine-the-program-moves-without-effort-it/)

[Marijn Haverbeke](https://sms4smile.com/quotes/author/marijn-haverbeke/)

> [“The programmer who refuses to keep exploring will surely stagnate, forget his joy, lose the will to program (and become a manager).”](https://sms4smile.com/quotes/marijn-haverbeke/the-programmer-who-refuses-to-keep-exploring-will-surely-stagnate/)

[Marijn Haverbeke](https://sms4smile.com/quotes/author/marijn-haverbeke/)

> [“The main thing I want to show in this chapter is that there is no magic involved in building your own language. I’ve often…](https://sms4smile.com/quotes/marijn-haverbeke/the-main-thing-i-want-to-show-in-this-chapter-is-that-there-is-no/)

[Marijn Haverbeke](https://sms4smile.com/quotes/author/marijn-haverbeke/)

> [“The computer programmer is a creator of universes for which he alone is responsible. Universes of virtually unlimited complexity can be created in the…](https://sms4smile.com/quotes/marijn-haverbeke/the-computer-programmer-is-a-creator-of-universes-for-which-he-alone-3/)

[Marijn Haverbeke](https://sms4smile.com/quotes/author/marijn-haverbeke/)

[Explore all 6 Marijn Haverbeke quotes ](https://sms4smile.com/quotes/author/marijn-haverbeke/)

## More Javascript quotes

> [JavaScript is the only language that I'm aware of that people feel they don't need to learn before they start using it.](https://sms4smile.com/quotes/douglas-crockford/javascript-is-the-only-language-that-i-m-aware-of-that-people-feel/)

[Douglas Crockford](https://sms4smile.com/quotes/author/douglas-crockford/)

> [Javascript is the duct tape of the Internet.](https://sms4smile.com/quotes/charlie-campbell/javascript-is-the-duct-tape-of-the-internet/)

[Charlie Campbell](https://sms4smile.com/quotes/author/charlie-campbell/)

> [I have been writing JavaScript for 8 years now, and I have never once found need to use an uber function. The super idea…](https://sms4smile.com/quotes/douglas-crockford/i-have-been-writing-javascript-for-8-years-now-and-i-have-never-once/)

[Douglas Crockford](https://sms4smile.com/quotes/author/douglas-crockford/)

> [A language like Ruby is a toolbox with some really neat little tools that do their job really nicely. JavaScript is a leather sheath…](https://sms4smile.com/quotes/nick-morgan/a-language-like-ruby-is-a-toolbox-with-some-really-neat-little-tools/)

[Nick Morgan](https://sms4smile.com/quotes/author/nick-morgan/)

> [In JavaScript, there is a beautiful, elegant, highly expressive language that is buried under a steaming pile of good intentions and blunders.](https://sms4smile.com/quotes/douglas-crockford/in-javascript-there-is-a-beautiful-elegant-highly-expressive-language/)

[Douglas Crockford](https://sms4smile.com/quotes/author/douglas-crockford/)

> [JavaScript is the world's most misunderstood programming language.](https://sms4smile.com/quotes/douglas-crockford/javascript-is-the-world-s-most-misunderstood-programming-language/)

[Douglas Crockford](https://sms4smile.com/quotes/author/douglas-crockford/)

> [The kind of programming that C provides will probably remain similar absolutely or slowly decline in usage, but relatively, JavaScript or its variants, or…](https://sms4smile.com/quotes/dennis-ritchie/the-kind-of-programming-that-c-provides-will-probably-remain-similar/)

[Dennis Ritchie](https://sms4smile.com/quotes/author/dennis-ritchie/)

> [“Software testing is a sport like hunting, it's bughunting.”](https://sms4smile.com/quotes/amit-kalantri/software-testing-is-a-sport-like-hunting-it-s-bughunting/)

[Amit Kalantri](https://sms4smile.com/quotes/author/amit-kalantri/)

Browse all 9 Javascript quotes

```json
{
    "@context": "https://schema.org",
    "@graph": [
        {
            "@type": "Quotation",
            "text": "“You should imagine variables as tentacles, rather than boxes. They do not contain values; they grasp them—two variables can refer to the same value.”",
            "creator": {
                "@type": "Person",
                "name": "Marijn Haverbeke"
            },
            "isPartOf": {
                "@id": "https://sms4smile.com/quotes/#website"
            },
            "url": "https://sms4smile.com/quotes/marijn-haverbeke/you-should-imagine-variables-as-tentacles-rather-than-boxes-they-do/",
            "about": {
                "@type": "Thing",
                "name": "Javascript"
            },
            "@id": "https://sms4smile.com/quotes/marijn-haverbeke/you-should-imagine-variables-as-tentacles-rather-than-boxes-they-do/#quotation",
            "image": {
                "@type": "ImageObject",
                "@id": "https://sms4smile.com/quotes/i/715/marijn-haverbeke-55197_javascript_you-should-imagine-variables-as-tentacle_21992.jpg",
                "contentUrl": "https://sms4smile.com/quotes/i/715/marijn-haverbeke-55197_javascript_you-should-imagine-variables-as-tentacle_21992.jpg",
                "url": "https://sms4smile.com/quotes/i/715/marijn-haverbeke-55197_javascript_you-should-imagine-variables-as-tentacle_21992.jpg",
                "width": 1080,
                "height": 1080,
                "caption": "“You should imagine variables as tentacles, rather than boxes. They do not contain values; they grasp…” — Marijn Haverbeke",
                "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": "Marijn Haverbeke",
                    "item": "https://sms4smile.com/quotes/author/marijn-haverbeke/"
                },
                {
                    "@type": "ListItem",
                    "position": 4,
                    "name": "“You should imagine variables as tentacles,...",
                    "item": "https://sms4smile.com/quotes/marijn-haverbeke/you-should-imagine-variables-as-tentacles-rather-than-boxes-they-do/"
                }
            ],
            "@id": "https://sms4smile.com/quotes/marijn-haverbeke/you-should-imagine-variables-as-tentacles-rather-than-boxes-they-do/#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
            }
        }
    ]
}
```
