code

/kΙ™ΚŠd/Β·nounΒ·c. 1300 (legal); 1808 (cipher); 1945 (computing)Β·Established

Origin

From Latin 'codex' (book), earlier 'caudex' (tree trunk) β€” every line of code descends etymologicallβ€Œβ€‹β€β€‹β€Œβ€‹β€β€‹β€Œβ€‹β€Œβ€‹β€β€‹β€Œβ€‹β€Œβ€‹β€β€‹β€β€‹β€Œβ€‹β€Œβ€‹β€Œβ€‹β€β€‹β€Œβ€‹β€Œβ€‹β€β€‹β€Œβ€‹β€β€‹β€Œβ€‹β€β€‹β€β€‹β€Œβ€‹β€β€‹β€Œβ€‹β€Œβ€‹β€Œβ€‹β€Œβ€‹β€β€‹β€β€‹β€y from a log.

Definition

A system of words, letters, or symbols used to represent others for secrecy or brevity; instructionsβ€Œβ€‹β€β€‹β€Œβ€‹β€β€‹β€Œβ€‹β€Œβ€‹β€β€‹β€Œβ€‹β€Œβ€‹β€β€‹β€β€‹β€Œβ€‹β€Œβ€‹β€Œβ€‹β€β€‹β€Œβ€‹β€Œβ€‹β€β€‹β€Œβ€‹β€β€‹β€Œβ€‹β€β€‹β€β€‹β€Œβ€‹β€β€‹β€Œβ€‹β€Œβ€‹β€Œβ€‹β€Œβ€‹β€β€‹β€β€‹β€ written in a programming language; a systematic collection of laws or rules.

Did you know?

The word 'code' literally means 'tree trunk.' Romans wrote on wooden tablets ('caudex'), and the word shifted from the wood to the writing to the book to the legal system to the cipher to the programming language. A 'blockhead' in Latin was literally a 'caudex' β€” a person as thick as a log β€” making 'code' and 'blockhead' unlikely etymological relatives.

Etymology

Latinc. 1300well-attested

From Old French 'code' (system of laws), from Latin 'cōdex' (a book, a system of laws), earlier 'caudex' (trunk of a tree, wooden tablet for writing). Romans wrote on wax-covered wooden tablets made from tree trunks, and 'caudex/cōdex' transferred from the wood to the writing on it, then to a bound book, then to a systematic compilation of laws (the Codex Justinianus). The 'secret cipher' sense emerged in the 1800s; the computing sense in the 1940s. Key roots: caudex/cōdex (Latin: "trunk of a tree, wooden tablet, book").

Ancient Roots

This Word in Other Languages

caudex(Latin)codex(Latin)cōdex(Latin)

Code traces back to Latin caudex/cōdex, meaning "trunk of a tree, wooden tablet, book". Across languages it shares form or sense with Latin caudex, Latin codex and Latin cōdex, evidence of a shared etymological family.

Connections

salary
also from Latin
latin
also from Latin
germanic
also from Latin
mean
also from Latin
produce
also from Latin
century
also from Latin
codex
related wordLatin
codify
related word
encode
related word
decode
related word
codec
related word
codicil
related word
caudex
Latin
cōdex
Latin

See also

code on Merriam-Webstermerriam-webster.com
code on Wiktionaryen.wiktionary.org
Proto-Indo-European rootsproto-indo-european.org

Background

Origins

The word 'code' has one of the most remarkable semantic journeys in English, traveling from a tree trunk to computer programming through a chain of metonymic transfers spanning two millennia.β€Œβ€‹β€β€‹β€Œβ€‹β€β€‹β€Œβ€‹β€Œβ€‹β€β€‹β€Œβ€‹β€Œβ€‹β€β€‹β€β€‹β€Œβ€‹β€Œβ€‹β€Œβ€‹β€β€‹β€Œβ€‹β€Œβ€‹β€β€‹β€Œβ€‹β€β€‹β€Œβ€‹β€β€‹β€β€‹β€Œβ€‹β€β€‹β€Œβ€‹β€Œβ€‹β€Œβ€‹β€Œβ€‹β€β€‹β€β€‹β€ Each step in its evolution involves the substitution of a container for its contents, or a material for its product β€” a cascading series of conceptual leaps that transformed a piece of wood into an abstraction.

The story begins with Latin 'caudex' (also spelled 'cōdex'), which meant 'the trunk of a tree' β€” specifically, the main stem stripped of its branches. Because Romans wrote on tablets made from split and wax-coated wood, 'caudex' transferred from the material (tree trunk) to the object made from it (wooden writing tablet). From a single tablet, it extended to a set of tablets bound together β€” a book. And from a book, it extended to the most important books in Roman law: systematic compilations of statutes and regulations, most famously the Codex Theodosianus (438 CE) and the Codex Justinianus (529 CE).

The word entered English via Old French 'code' around 1300, initially meaning 'a systematic collection of laws or regulations' β€” the sense preserved in 'legal code,' 'building code,' 'code of conduct,' and 'penal code.' This is 'code' as a structured system of rules.

Development

The 'secret cipher' sense emerged around 1808, though the practice of encoding messages is ancient. A 'code' in this sense is a system for converting a message into a form that conceals its meaning from unauthorized readers. This sense extended the 'system of rules' meaning: a cipher code is a systematic set of rules for transforming text. The verb 'to code' (to write in cipher) followed, along with 'encode' (to put into code) and 'decode' (to extract from code).

The computing sense emerged in the mid-1940s, when the pioneers of electronic computing adapted the cipher meaning to describe the instructions written for a machine. 'Code' was a natural choice: like a cipher, computer code is a system of symbols that must be translated (compiled or interpreted) to produce its intended effect. Grace Hopper, who worked on the Harvard Mark I in 1944, was among the early users of 'code' in the programming sense. By the 1950s, 'source code,' 'machine code,' 'coding,' and 'coder' were established in the computing vocabulary.

The Latin root 'caudex' also produced 'codex' (a manuscript volume, especially of an ancient text), 'codify' (to arrange laws or rules into a systematic code), 'codicil' (a supplement to a will, literally 'a little book'), and 'codec' (a twentieth-century blend of 'coder-decoder,' a device or program that encodes and decodes data). In classical Latin, 'caudex' had a colloquial meaning of 'blockhead' β€” a person as dense as a tree trunk β€” making the ancestor of 'code' also the ancestor of an insult.

Legacy

The full journey β€” tree trunk β†’ wooden tablet β†’ bound book β†’ law book β†’ system of laws β†’ secret cipher β†’ computer instructions β€” is a textbook case of how meaning evolves through chains of metonymy, each step perfectly logical in context, the cumulative result almost unrecognizable from the starting point.

Keep Exploring

Share