Variable as Pigeonhole

Programming Language

imperative / BASIC

Form

Analogy

Attribution — Origin / Source

Collected by Matthias Hauswirth — Textbook 'Introduction to Computer Programming: Basic'

Conceptual Advantage

Makes variable tangible, gives impression of memory as a bunch of variables

Mapping

PLNM
variable pigeon hole in shelf
variable name label attached to the pigeon hole
value note inside the pigeon hole

Draws Attention To

Variables contain values

Use When

When introducing memory/information, in the form of variables in BASIC

Cost

not captured

Details

Used by Usborne’s Introduction to Computer Programming: Basic. We found this thanks to a Twitter thread on analogies for variables.

Comments or Feedback?

Do you have feedback on this notional machine? Did you find a mistake, or do you have a request for improvement? You can create an Issue on GitHub, where the description is hosted. This way we can see your feedback and address it.

For this, you need a GitHub account. Then follow this link to see the source file of this page. In there, click the ... left of the highlighted line, then pick "Reference in a new issue".

Create an Issue on GitHub