Blog · Craft · · 4 min read
The stationary shape
In physics, a path integral sums over every trajectory a system might take, and the path that survives is the one where the action is stationary: nudge it slightly in any direction and the cost barely moves. Software works the same way across time. Every structural decision in a codebase (a table key, a coordinate system, who owns a piece of state, or what a concept is named) shapes every future version of the app that will pass through it: features you have not imagined yet, data sources you have not captured yet, and views you have not drawn.
The median engineering choice optimizes for today’s ticket and charges a tax along every later path. A local patch looks cheap on Monday and collects compound interest for the next five years. The right choice sits where the action is stationary: pull it in any future direction (another source, another property, another view, or another device) and the cost stays flat.
Designing for an interface that already exists
Path-integral thinking applies to interface design just as much as to code. We designed Ptree by imagining God himself tapping, scrolling, and navigating the entire tree of life on a finite two-dimensional panel just out of sight. The glass is flat, the width is bounded, and the tree holds millions of organisms and dozens of properties.
Under that physical constraint, an optimal Platonic form has to exist. We can only approach it, never prove we have reached the bottom, yet assuming that an interface exists that even an omniscient user would be satisfied with for maximum density in a 2D panel changes how you work. Instead of assembling familiar widgets from existing design systems, you imagine a far future in which the artifact is already perfect and pull the current build toward it with every iteration.
That constraint is how we arrived at the folding tree gutter. Nobody had built a tree explorer where deep ancestor columns fold into a single left gutter as you descend while remaining one click away. It came directly from asking for the best way to expand an arbitrary-depth tree inside a bounded 2D panel while folding away what is extra.
The same constraint produced Ptree’s rolled-up proportional color tiles and morphing box-whisker plots. Putting a clade’s full distribution directly onto the tile’s own surface, without separate chart panels and without hiding minorities, gives maximum information density inside a finite 2D tile.
The test is whether unplanned features arrive free
Taste is easy to claim in the abstract, so stationary architecture has a concrete test. When an unplanned feature comes up six months later, does it fall out of the existing structure in a handful of lines, or does it demand adapters, caches, exception lists, and parallel tables?
Two examples from Ptree show the difference. When I decided to let visitors dim every clade on screen that does not live near their coordinates or inside a chosen country, the entire feature took under 200 lines of client JavaScript and zero server changes. That was only possible because long before location filtering existed, taxon range outlines and selectable country polygons had been placed in the same SVG equirectangular projection, and identity had been modeled as one relation. The browser’s built-in Path2D.isPointInPath() answered the query immediately.
Cloudflare’s health checks gave the same proof on the server side. Monitors were getting rejected by Ptree’s origin because Apache enforces a Cloudflare-only access rule. The median fix is a path exemption in Apache or a cron job that syncs Cloudflare’s published IP ranges. The stationary fix touched zero lines of server config: configure the monitor to send the exact header that proxied traffic already carries.
The API server follows the same rule. It has zero per-source branches. Every displayed backbone and every property source plugs into one neutral node-addressed dispatch table through a single registry. Adding an eleventh taxonomic tree or a fortieth trait dataset does not touch the HTTP server at all.
The same principle turned a 250 GB photo-selection side pipeline into an ordinary tree rollup. Once photos and sounds shared the same fold-and-score shape as every other per-clade summary, picking a group’s representative recording from its own photo organism took a handful of lines instead of a separate subsystem.
Naming as wiring
Stationary shapes show up in vocabulary too. When a DOM radio value, a URL token, a SQLite store name, a property key, a filename, and a JavaScript export all refer to the same concept, giving them the exact same name lets the data select the operation directly:
const loaders = { wiki, interactions, data };
loaders[input.value](taxon);
Whenever you find yourself writing a translation map ({ key: differentlyNamedFunction }), an if/else dispatcher, or a parallel allow-list that restates permanent DOM controls, the shape has drifted off the stationary path. Align the vocabulary and delete the adapter.
Growing cheaper as it grows
Most software projects grow heavier and slower to change every month, because each shortcut leaves behind a local quirk that every later feature has to work around. On the stationary path, the opposite happens: each clean representation makes the next unplanned idea cheaper than the last.
Before accepting any change, ask which future versions it makes cheaper and which it makes dearer. A tiny patch that makes the next unplanned feature harder is wrong, no matter how few lines it adds.