AI-READABLE CODE
Naming in software goes way beyond any aesthetics. Good naming minimizes reconstruction work. Here is the style and habits that I've picked up.
ADAM TORNHILL
JUN 23, 2026
Today we’re taking on the second hardest problem in computer science: naming.
Each time we write code, we face a multitude of micro-decisions. How do we label functions, classes, variables, etc. to get the most out of the code as a communication medium? That is, communication that sharpens our thoughts in the moment, as well as code that supports our future selves and any agent trying to make sense of what’s already there.
As such, naming in software goes way beyond any aesthetics. Good naming minimizes reconstruction work. For both humans and machines.
In this article, I share the style and habits that I’ve picked up. It’s a style that evolved over the years, and shaped by viewing software through the lens of cognitive psychology to support the way we think, reason, and solve problems