There's a category of code that makes me stop, re-read it, and think: whoever wrote this actually cares. It's not magic. It's just deliberate.
Comments Aren't the Story
The usual advice is "write comments." That advice is incomplete at best.
Comments can lie. They rot. A comment that was accurate six months ago might now describe behavior that no longer exists, pointing future-you confidently in the wrong direction.
The code itself is always the source of truth.
Three Moves That Changed My Code
Move 1: Name things after what they mean, not what they are.
Move 2: Extract conditionals into named predicates.
Move 3: Let the shape of your code reflect the shape of the domain.
A function called processUserData could do almost anything. A function called
hydrateUserSessionFromToken does exactly one thing. Future readers know what
to expect before reading the body.
When Comments Are Genuinely Valuable
- Why, not what. The code shows what — comments should explain why you made a non-obvious choice.
- Domain context. Business rules that aren't apparent from code structure.
- Known tradeoffs. "We're doing this the slow way because X. See issue #432."
The Test
If a teammate unfamiliar with this file can read it top-to-bottom and understand what it does and why, the code is good. If they have to run it to understand it, it needs work.
That's the standard. It's not always achievable. But it's always worth chasing.
Jason Lima
Software engineer. I write about building systems, the craft of code, and lessons learned from shipping real products. Say hello →
Related reading
The Hidden Cost of 'Simple' Architecture Decisions
Every architecture decision you make in the first six months will still be there in year three. Here's how to think about the ones that compound.
TypeScript Patterns I Actually Reach For
Not the clever tricks — the boring, readable patterns that appeared again and again across every large TypeScript codebase I've worked in.