Skip to content

Javascript Quote by Marijn Haverbeke

“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
Download Open image
““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

About This Quote

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?
2.0 out of 5 (10 ratings)

More by Marijn Haverbeke

Explore all 6 Marijn Haverbeke quotes

More Javascript quotes

Browse all 9 Javascript quotes