The English word “spell” is a linguistic curiosity. In modern usage, we treat its two primary meanings as entirely unrelated: as a verb, to spell is simply to arrange letters in the correct order; as a noun, a spell is a charm or an incantation.
However, if you dig into the etymology, the divide between “orthography” and “sorcery” begins to blur.
The Evolution of a Word
The verb spell originates from the Old English spellian, meaning “to tell” or “to speak.” By the end of the 14th century, this evolved into our current definition. This shift likely occurred because, in the Middle Ages, reading was almost exclusively a vocal activity; to read a word was to “tell” it.
The noun spell—the magical kind—comes from a different Old English root meaning “story” or “message.” By the early 1300s, this shifted toward the supernatural. In the folklore of the time, stories and messages were inextricably linked to prophecy and the occult.
The Power of the Rune
To understand where these two paths converge, we have to look at Runes. Before the adoption of the Latin alphabet, Germanic peoples used runic alphabets. But for them, runes were more than mere phonetic markers; they were vessels of power.
In the Elder Futhark, each rune represented a core concept—for instance, fehu stood for cattle and wealth. It was believed that the rune captured the very essence of the thing it named. Consequently, the act of writing became an act of creation. To “spell” a word using runes was not just to label something, but to invoke its power.
This brings us to Galdr—the Old Norse art of incantation. Derived from the verb gala (“to sing” or “to crow”), Galdr was a form of verbal magic. While other forms of sorcery (seiðr) were often viewed as manipulative, Galdr was associated with wisdom and deep knowledge. Even the god Odin is said to have sacrificed himself upon the world tree, Yggdrasil, for nine nights just to unlock the secrets of the runes and the power of Galdr.
Coding as Modern Sorcery
For those of us who spend our days in integrated development environments (IDEs), this connection is more than a linguistic coincidence—it’s a mirror.
When you possess a knowledge of both programming and ancient Germanic history, the analogy becomes obvious. We use the same word for “arranging letters” as we do for “casting magic.” While we no longer carve runes into stone to invoke wealth or protection, we do something remarkably similar every time we open a code editor.
There is an undeniable thrill in staring at a blank screen—a digital void—and typing a precise sequence of characters to bring something into existence ex nihilo. To string together specific words in just the right order and watch as the machine executes your will is, for all intents and purposes, a magical act.
We aren’t just writing syntax; we are casting spells.
Footnote: Interestingly, the use of “spell” to describe a period of time (as in “a spell of good weather” or “sit a spell”) comes from an Old English root meaning “substitute” or “shift,” referring to a change in work rotations.