Companion Series  ·  Number, Code & Secret  ·  Part 2 of 3

Encoding the WorldSaying the most with the least — and making it survive the journey

Every message — a word, a number, a song, a genome — has to be turned into symbols, sent, and turned back. The history of encoding is the long search for the fewest, safest marks that can carry any meaning across space and time, against waste and against noise.

01Writing as Compression 02The Binary Idea 03Signals Across Distance 04Shannon & the Bit 05Error & Compression

Part 1 built up number, the abstract stuff of mathematics. But an idea trapped in one head is useless; to be shared, stored, or sent, it has to be encoded — turned into agreed marks and later decoded back into meaning. This companion follows that craft from its first masterpiece, the alphabet, through binary, the telegraph and Morse, to the moment a single 1948 paper turned "information" into a measurable quantity with hard mathematical limits. As always: a Fun Trivia to hook you, then the Story. One thread runs through all of it — the cleverness is never in having more symbols, but in finding the right few.

CHAPTER 01From Pictures to Letters

Writing as Compression

🎲 Fun Trivia

Early writing systems needed thousands of signs — Egyptian hieroglyphs and Chinese characters each run into the thousands. The alphabet's radical trick was to throw almost all of them away: a few dozen letters standing for sounds, not things, can spell every word in a language.

📖 The Story

The first scripts were largely pictographic — a sign for an ox, a sign for a house, a sign for "to give." They were expressive but enormous, taking years to master, which kept reading and writing locked inside a small scribal elite. Encoding the world this way meant carrying an entire warehouse of symbols in your head.

The breakthrough, refined by the Phoenicians around three thousand years ago, was the phonetic alphabet: instead of a symbol per word, a symbol per sound. Suddenly a couple of dozen marks could encode any utterance in the language, and literacy became something ordinary people could acquire. This is encoding's deepest lesson, arriving right at the start of the story: power comes not from a bigger set of symbols but from a smaller one that still captures everything — the first great act of compression.

CHAPTER 02Why Two Symbols Are Enough

The Binary Idea

🎲 Fun Trivia

We count in tens for a silly reason: ten fingers. There's nothing mathematically special about it — the Babylonians used 60, the Maya used 20. In 1679 the philosopher Leibniz worked out a system using just two symbols, 0 and 1, and was delighted to find its pattern echoed in the ancient Chinese I Ching's broken and unbroken lines.

📖 The Story

A base is simply how many symbols you run through before rolling over into a new column. Base-10 is a habit of anatomy, not a law of nature. Leibniz saw that base-2 — binary — was the simplest system possible: every number expressible with nothing but 0s and 1s. For two centuries it stayed a philosophical curiosity, an elegant toy.

Then its hidden virtue surfaced. Anything with two clean physical states — on/off, high/low voltage, charged/uncharged, hole/no-hole in a punched card — can store a binary digit reliably, because the two states are easy to tell apart even when a signal is degraded. That robustness made binary the native tongue of machines, from looms and player pianos to transistors. The entire digital world rests on a discovery from Part 1's spirit: that two symbols, used cleverly enough, can encode any number — and therefore any information at all.

CHAPTER 03Codes as Agreed Maps

Signals Across Distance

🎲 Fun Trivia

Samuel Morse didn't design his code with a scientific letter-count — he reportedly walked into a local print shop and asked how many of each letter they kept in their type cases. The most common letter, E, got the shortest signal of all: a single dot. Frequency, quietly deciding the code.

📖 The Story

To push a message down a wire or across the air, you need a code: an agreed mapping between symbols and signals. The electric telegraph of the 1830s and 40s made this urgent, and Morse code answered with dots and dashes — shrewdly giving common letters short codes and rare ones long, so that ordinary text flew down the line as fast as possible. It was the alphabet's compression lesson, rediscovered for electricity.

Later schemes took a different tack. The Baudot code — a direct ancestor of the bit-patterns inside your computer — gave every character a fixed-length string of marks, clumsier for humans but far easier for machines to send and sort automatically. Each design struck its own bargain between speed, simplicity and reliability. But all rested on one principle: meaning is not in the signal, it lives in the agreed map between sender and receiver. Lose the map, and the most carefully sent message collapses into noise.

CHAPTER 04Information Becomes a Quantity

Shannon & the Bit

🎲 Fun Trivia

In 1948 a single paper by Claude Shannon created an entire science overnight. It gave the world the word bit, defined information mathematically as the resolution of uncertainty, and proved exactly how much could be squeezed down a noisy channel. Almost every download, call and stream you've ever made obeys its limits.

📖 The Story

Before Shannon, "information" was a fuzzy notion. He made it a measurable quantity, and his key insight was startlingly simple: information is surprise. A message confirming what you already expected carries little; one that resolves real uncertainty carries a lot. He measured it in bits — each bit the answer to one yes/no question — and defined a source's entropy as the average surprise it produces.

Then came the theorem that stunned engineers: every channel has a maximum capacity, a hard rate beyond which you cannot send error-free — but up to which, with clever enough encoding, you can communicate essentially perfectly even through heavy noise. This drew a sharp line between the possible and the impossible for all communication, forever. The craft that began with Phoenician traders choosing letters had become a rigorous science with laws as firm as thermodynamics. Everything digital lives inside the bounds Shannon set.

CHAPTER 05Fighting Noise, Fighting Waste

Error & Compression

🎲 Fun Trivia

Your DNA, a QR code and a music-streaming service all play the same two tricks Shannon's science demands: throw away what's predictable (compression), then add back careful redundancy so mistakes can be caught and fixed (error correction). A QR code can be roughly a third destroyed and still scan perfectly.

📖 The Story

Shannon's laws set two opposing jobs. Compression strips out redundancy so a message takes fewer bits: Huffman coding, devised in 1952, hands the most common symbols the shortest codes and proves it's the best you can do — Morse's instinct, now mathematically optimal. Error-correcting codes do the reverse, adding structured redundancy so that if noise flips some bits, the original can still be recovered: Hamming codes, from the same years, detect and repair errors all by themselves.

Every robust channel balances the two — squeeze first, then armour. Even biology plays the game: the genetic code carries built-in redundancy that quietly buffers many mutations. From the alphabet's economy to the genome's self-repair, the whole history of encoding converges on a single discipline — say the most with the least, and make sure it survives the trip. But all of this assumes both sides want the message understood. What happens when they don't — when one party knows something the other must never learn? That is the asymmetry of knowing, and it is Part 3.

Next in this companion

Part 3 — The Asymmetry of Knowing

Encoding assumes both sides want the message understood. Part 3 asks what happens when they don't — when one side knows what the other doesn't. The mathematics of unequal knowledge: lemons, peacock tails, poker, one-way functions, and proofs that reveal nothing.

Continue when you're ready →

Full reference list