edawise

Decisions

Edawise

A codebase is some sequence of decisions, that are related in a vaguely hierarchical way

  1. You start with high-level decisions
  2. Gradually, you describe those decisions in greater detail
  3. You elaborate them further, with more specific language
  4. Then you translate those into implementation decisions
  5. And finally into actual implementation (code)
Decision FDecision GDecision IDecision CDecision DDecision EDecision ADecision BIntentYour codebase

Rounded rectangles are the Intent node and decisions A to G and I; file icons at the bottom are five files. Solid arrows run downward: Intent to A, B and D; A to C, D and G; B to E; C to F; D to G; E to I; F to the first and second files; G to the second and third files; I to the fourth and fifth files. Each arrow means the node it points to depends on the node it starts from.

Code is the implementation of higher-level decisions.

Even in writing the code, you are likely performing an approximate, scoped version of the process (and if you aren’t, you probably should)

When we write/read code, all the higher level decisions are implicit, and we infer them by reading the code and any available documentation, constructing a mental model of the codebase in the process. This made sense when writing code took longer than reading and understanding it, but now that AI writes most code, inference of decisions and construction of our mental models becomes a tiresome bottleneck.

The most valuable layer has become the least valuable. It obscures what we care about most (product, architectural and design decisions) and obscured them in many thousands of lines of boilerplate and syntax. Code is just one layer of all the decisions and intent imparted.