Per Brinch Hansen, 1977

AI-generated editorial portrait of Per Brinch Hansen in a clear programming research setting

“Programming is the art of writing essays in crystal clear prose and making them executable.”

Per Brinch Hansen wrote this line in the era of structured and concurrent programming, and it captures his insistence that a program should communicate an argument as clearly as it commands a machine. Calling code an essay does not make programming literary decoration. It means that a program has a subject, a structure, definitions, claims, and a sequence that readers must be able to follow. “Executable” adds a stricter test than ordinary prose: the explanation must be precise enough for a computer to act on without interpretation. Good programming therefore joins human clarity with mechanical exactness instead of treating them as competing goals.

The comparison changes how developers think about style. Clear code introduces concepts in a useful order, gives important ideas stable names, and keeps related reasoning together. Interfaces behave like carefully stated promises. Invariants act like claims that every later paragraph must respect. Tests provide examples and evidence, while comments preserve motives that syntax cannot express. Repetition, unexplained exceptions, and abrupt shifts in abstraction weaken a program for the same reason they weaken an essay: they force the reader to reconstruct a missing line of thought. A compiler can accept such code, but future maintainers still have to understand what it means.

Brinch Hansen’s wording also resists the idea that clarity is merely a final polish applied after the “real” technical work. Writing clearly often reveals that the design itself is confused. If a function cannot be named without a vague noun, it may contain several responsibilities. If an interface needs a long list of warnings, its boundary may be poorly chosen. If concurrency rules cannot be stated simply, the synchronization model may be unsafe. Revision is therefore part of engineering. Programmers refine structure, remove ambiguity, and test explanations against behavior until the program’s organization makes its purpose easier to see.

Today, code is read by distributed teams, security reviewers, operations staff, open-source contributors, and AI systems as well as by compilers. Generation tools can produce syntactically valid solutions quickly, but speed does not guarantee a coherent explanation. Brinch Hansen’s standard asks whether a change can be reviewed as an intelligible argument: what problem it addresses, which assumptions it relies on, where its responsibility ends, and how failure appears. Teams that value executable prose choose small understandable units, explicit contracts, useful examples, and documentation that records decisions rather than restating syntax. The result is not only pleasant code. It is software that can be trusted, taught, and revised because its reasoning remains visible.

Brinch Hansen used the line while advocating disciplined, structured programming and precise ways to express concurrent systems.

The metaphor joins two audiences: a program must give people a clear line of reasoning while giving a computer instructions with no room for interpretation.

Readable code introduces concepts in order, states responsibilities through interfaces, and keeps assumptions visible through names, tests, and concise documentation.

Clarity is not decoration added after implementation; difficulty explaining a function or concurrency rule is often evidence that the underlying design needs revision.

Distributed teams and AI generation increase the number of readers and authors involved in a codebase, making visible reasoning more valuable than ever.

Executable prose gives reviewers and maintainers a way to see assumptions, boundaries, and failure behavior instead of trusting code merely because it runs.

Explore more "Quotes of The Day"

Discover more notable quotes from influential voices across politics, science, business, technology, sports, and culture. Each quote offers insight into how ideas, beliefs, and decisions shape the world around us.