Engineering²
Who engineers the engineering?
I've spent a good chunk of this year engineering something that isn't really software in the traditional sense. Or, rather, the software is a byproduct of what I'm actually engineering.
I'm engineering how I engineer.
I didn't necessarily set out to do this. It started with noticing patterns in how I worked with language models. I'd find myself giving the same instructions, correcting the same mistakes, asking the same questions, and generally repeating a process that existed almost entirely in my head.
And what do we do as software engineers when we find ourselves doing the same thing over and over again?
We abstract it.
The engineer as a system
After more than a decade of building software, I've developed a methodology. Not a particularly formal one. There wasn't a document somewhere describing how Jake engineers software. It was an accumulation of experience, mistakes, preferences, opinions, and little mental checklists.
When I enter an unfamiliar codebase, there are things I look for. When I design a system, there are questions I ask. When I review an implementation, there are things that make me uncomfortable. Much of this happens without me consciously thinking about it. Which is great, until I want something else to participate in that process.
Language models have forced me to make a lot of that implicit knowledge explicit. I can't reasonably expect a model to understand what I consider a good implementation if I've never bothered to define one.
So I started defining it.
This has gradually turned into a project I've been calling SDD. It's a collection of reusable skills and processes that represent how I want software to be engineered, independent of the particular model or tool doing the implementation.
The interesting part is that, in developing these skills, I've had to interrogate my own methodology.
Why do I do things in this order? Why do I prefer this approach? Is this actually a good practice or just something I've been doing for fifteen years?
Turns out I have some technical debt in my brain, too.
Another layer of abstraction
I haven't really written code by hand this year.
Woof. There it is. That's a spicy meatball.
I'm sure that statement alone is enough to get me disqualified from a handful of software engineering jobs. Though, as we're seeing more and more, that would also qualify me for certain jobs.
But I do find the distinction increasingly strange.
We don't expect someone operating a bulldozer to demonstrate their proficiency with a shovel before we let them move dirt. I don't manufacture the processors that execute my software. Hell, most of us don't even particularly care what assembly our compilers produce on a daily basis.
We've spent the entire history of computing building abstractions that allow us to operate at increasingly higher levels.
Yet there seems to be something particularly sacred about the act of typing source code into a text editor.
I understand some of the hesitation. A bulldozer can move a lot of dirt into the wrong place very quickly. A language model can produce an impressive amount of absolutely terrible software. And unlike a compiler, a language model isn't a deterministic implementation of a well-defined specification.
But that sounds like an engineering problem to me.
Pulling an Abed
I keep thinking about this scene from Community.
In Digital Estate Planning, the study group has to play a video game to win Pierce's inheritance. While everyone else is running around playing the game, Abed starts figuring out its underlying mechanics and eventually builds an entire automated operation within it.
Everyone else is playing the game. Abed is engineering how he plays the game.
I increasingly feel like Abed.
There's something particularly appealing to me about encountering a system, understanding its mechanics, and then building another system on top of it that changes how I interact with the original.
It's also an amusingly accurate representation of how I sometimes end up spending an afternoon building a tool to help me build the thing I originally sat down to build.
Sometimes the tool ends up being more interesting than the thing.
Engineering the engineering
What happens if we start treating the development process itself as a system?
It has inputs and outputs. It has dependencies, interfaces, constraints, and failure modes. It can be modularized, versioned, tested, and improved.
Instead of fixing a bad implementation, can I fix the process that produced it?
Instead of correcting a model every time it enters an unfamiliar codebase, can I define a reusable methodology for establishing context?
Instead of repeatedly asking a model to consider failure modes, can I make that consideration an explicit part of my engineering process?
The difference is that an improvement to the process can benefit every subsequent project.
Fixing a bug in one application is useful. Identifying why my development process repeatedly produces that class of bug and addressing it upstream is considerably more interesting.
This is where I've found myself spending more and more of my time.
I'm still thinking about architecture, interfaces, data models, performance, observability, and all the other things I've spent my career thinking about. I'm just increasingly expressing those thoughts through specifications, constraints, and reusable processes rather than directly through source code.
And because those processes exist outside of my head, I can actually inspect them.
I can version them. I can share them. I can run them against different models. I can observe where they break down.
I can engineer them.
Who watches the watchers?
Of course, this introduces another problem.
How do I know that the engineering process I've engineered is any good?
A model telling me that another model did a good job isn't particularly compelling evidence. Neither is the fact that an application appears to work. We've all built software that appeared to work.
If I'm going to treat engineering methodology as a system, I should probably hold it to the same standards as any other system I build.
That means establishing baselines, defining what success looks like, testing changes, and measuring outcomes.
Does a particular skill actually improve the quality of an implementation? Does it reduce regressions? Does it work across models? Does it consume more resources than the problem warrants? Am I improving the process or just making it more elaborate?
This is part of what interests me about the work I've been doing with Replaybook. Evaluating models is interesting, but evaluating the systems and methodologies we build around those models might be even more interesting.
The model is only one component of the system.
A better model doesn't necessarily mean a better engineering process, just as a faster processor doesn't necessarily mean a better application.
And now we're getting into some fun recursive territory.
- Engineering¹: engineering software.
- Engineering²: engineering the process that engineers software.
- Engineering³: engineering the process that evaluates and improves the process that engineers software.
How far down does this go?
What am I actually optimizing for?
Capitalism, baby.
Well, not entirely, at least on purpose.
There is obviously an appeal to being able to produce more software with less effort. But I don't particularly want to optimize for lines of code, number of commits, or even the number of applications I can churn out.
I want to reduce the distance between having an idea and having a reliable implementation of that idea.
I want the lessons I learn on one project to carry over to the next without having to consciously remember every single one of them.
I want to be able to change models without fundamentally changing how I work.
And I want to spend more of my time on the problems I find interesting.
There is also something satisfying about making my own methodology tangible. Other engineers can inspect it, disagree with it, contribute to it, or take the parts they find useful and incorporate them into their own processes.
What was once a collection of loosely connected thoughts in my head becomes something that can evolve independently of me.
Open source engineering methodology. Neat.
Still engineering
I don't know what the software engineering profession looks like in five or ten years. Hell, I wouldn't have predicted where we are a year ago so what do I know? I'm not particularly convinced anyone else does either.
I do know that I haven't run out of engineering problems since I stopped manually typing most of my code. If anything, I've found an entirely new category of them.
I'm still making decisions. I'm still debugging systems. I'm still wrong about things. I'm still responsible for the software I produce.
The difference is that I've started treating the way I do those things as something worth building, too.
For most of my career, software was the thing I was engineering.
Now, increasingly, so is the engineer.