4 min read by Zef Hemel

No More Elegance


Here’s the pattern that repeats for me writing code — the pattern that has kept me engaged in this field for well over thirty years:

Something starts out small: a few hundred lines of code. It does something useful. As I use it and build it out, it slowly accumulates complexity over time. It gets larger and larger. I start to feel uneasy.

Then, often during a shower, a walk or run, but always unscheduled: major epiphany.

I see a pattern, some commonality across multiple areas. Then I figure out a dramatic simplification resulting in significant complexity collapse. 

My brain now works at full throttle. I work through the idea in my head first, then note things down, often in outline form to flesh it out.

Then I clear out a significant block in my schedule, I open my code editor, and after a few hours of hardcore programming while wired in I resurface with a dramatically simplified, shorter and way more elegant solution.

This an absolutely amazing experience.

And it never happens in management.


Somebody gave be a useful explanation of the difference between control and management once. 

A program is something you can control. It has (to some degree) predictable inputs, there is a limited number of variables, and you codify the steps and therefore can predict its outputs. As a result, you can come up with a radical new algorithm, verify it, and deploy it with largely predictable results. Assuming you don’t add an LLM to the mix, obviously.

Control is not something that scales indefinitely. At scale, the number of inputs, variables and way they’re interlinked becomes so complex that we have to pivot our approach to managing rather than controlling.

A useful analogy is a city. You cannot realistically control a city, you can only manage it. Think SimCity: you allocate areas for different purposes — one area is for housing, another for commerce. You don’t decide who settles where and who does what at any given moment, you just put infrastructure in place. You add roads and parks in an attempt to make certain (desirable) things happen, and put in other infrastructure such as police stations to avoid bad things from happening as much as possible. You put in more infrastructure like hospitals and fire brigades in place to handle the cases where things go wrong anyway, as they inevitably will. You increase one tax, you lower another. 

While you likely have goals in mind, there are no guarantees of outcome. There’s hardly anything you can do that has deterministic consequences. Of course, technically they’re deterministic (especially in a game like SimCity), but the complexity of all the moving parts is so ridiculous that nothing is determinable to you. And obviously, the moment humans enter your elegantly crafted city, complexity explodes and all bets are off.

This is the big mental shift you have to make moving from an engineering role to a management role: people, unlike computers, cannot be controlled, they can only be managed.

This, sadly, also means there are no grand scale elegant solutions to be found. Management an ever lasting game of whack-a-mole. You introduce one thing with the best of intention, then another unanticipated thing blows up as a result. Perhaps in hindsight you could have seen it coming — experience does help — but nothing in management ever fullyworks. Many management ideas start out as an elegant idea, but grow into complex beasts, as more edge cases are discovered that need to be accounted for.

Until somebody, somewhere takes a shower, or goes for a run, and has an epiphany.

At least they’d like to believe they did.

The difference with coding epiphanies is: none of these epiphanies can be implemented by wiring in for a few hours. They will require generating buy in from other people. And it’s likely that those other people will be quick to burst the bubble “Oh yes, we’ve tried that, but it had these unforeseen and undesirable effects.” Even ideas that cross that first “yeah... no” barrier quickly start to lose elegance based on feedback, as more and more special case handlers start to be bolted on.

And assuming we’re still happy enough with the resulting Frankenstein-with-echoes-of-your-original-shower-induced epiphany to pursue it, then freight boat theory kicks in.


This may sound depressing. And perhaps if it’s only elegance you’re interested in, perhaps moving back to engineering work is the way to go. Actually, it may be better to consider a field like mathematics.

Another way to look at it is as a strategy adjustment opportunity.

Once we accept that elegance is not likely, we can put our energy into less revolutionary, more pragmatic and iterative steps. 

Don’t think: how do we revolutionize this system and fix it once and for all?

Instead, think: how do we make this slightly better. What is the minimal thing we can do to nudge things in a (ideally better) direction.

Even if we (naively) sense there’s an elegant solution to end up with, don’t attempt to go there in one leap, but plot a path to get there step by step.

Perhaps you planned out the path perfectly, and the steps you planned were exactly correct. More likely, the general direction may have been sensible, but did not anticipate a lot of complexity. Nevertheless, due to your incremental approach, you discover these things along the way, rather than heading into all Viva la revolución-like.

Catch the next one

Get new content straight in your inbox.