the Pragmat

The Two Rules

Everything on this site derives from two rules, applied in order. The rest is commentary.

  1. Never compromise on working code.

    Either it works or it doesn't - end of story. Elegant architecture that doesn't ship is worthless. Ugly code that works beats perfect code that doesn't.

    Working means it does what it claims - including what its shape claims about reality. Code that passes every test while teaching its user a false picture of the problem is broken in a place the tests don't look. You can spot it by the workarounds: the things everyone learns to do that the documentation never mentions, because they shouldn't be necessary.

  2. Ruthlessly reduce cognitive load.

    Once something works, the next priority is cognitive load. Not every useful system fits in anyone's head, and it doesn't have to. What matters is that it asks no more of you than the problem itself demands. Difficulty the problem doesn't require is the builder's to remove. Difficulty it does require stays, because simplifying it away breaks Rule One. What stays is made explicit: show people what they need to make the next decision, and nothing that hides it.


The order is a dependency, not a preference.

You can't reduce the cost of understanding something that doesn't work. So Rule One comes first: ship first, clarify second.

The order settles the hardest design call there is. A user arrives expecting the problem to work one way; reality works another. The temptation is to bend the design toward their expectation - it feels intuitive, the friction drops. That trade breaks Rule One to buy relief under Rule Two, and the order forbids it. Hold the design at reality and accept the early friction. The user's picture corrects, and the friction goes with it.

And never use Rule One as an excuse to ignore Rule Two for good. Working code nobody can maintain is a ticking clock.


Both rules, five people.

Most software philosophy is written for the developer. These rules are checked against everyone who touches the system, and "working" means something specific to each:

User
They can accomplish their goal.
Help desk
They can find out what went wrong and how to fix it, without escalating.
System admin
They can deploy it, run it, and bring it back without calling the developer.
Product owner
They can tell, at any moment, whether it's working.
Developer
They can change it without breaking something they didn't touch.

Two rules times five people is ten questions. Every one needs an answer. That grid is where the principles come from.