This is a collection of notes on things that I think are interesting. No claim to novelty or profound insight should be inferred.

2026-11-28: Good Abstractions Have Become More Important?

I do not know anyone who programmes who would describe 2026 as normal. That is not to say that such people don't exist, just that I don't know them. It wasn't until February (I think) that I became aware something had happened with coding agents that meant I would find them useful, and it took me another few months to find the time to start using them properly. Jump forward to November and the proportion of code that I write by hand has dropped a lot, and I don't dislike it.

My current favourite use-case for agents is quickly exploring the design space when I know exactly what I want, know that it ought to take 20-100 lines of code, but don't know what those 20-100 lines are. I've had it happen that I'll spend a few hours iterating through designs, cumulatively generate a couple of thousand lines of code (I would guess), and chuck all but 100 of them away, leaving something that I really like. Importantly, this is the kind of thing that would either not have happened without an agent (and I would have been stuck with a sub-par solution that annoyed me), would have taken a few days of careful work, or something in between.

However, as you may have guessed from the above, I've not embraced generating large volumes of code. If you generate 10s or 100s of thousands of lines of code, you need some approach to building confidence that it does the right thing, and that approach clearly cannot involve reading more than a tiny fraction of the code. Certainly, you can task an agent to review it, but then you have the problem of determining whether the agent caught all of the important problems. You can obviously run the code and see what it does, but when there's that much of it it's hard to believe that you'll ever get close to covering all of the edge cases. Perhaps some formal verification could help, but I don't see that being a panacea since a complete specification is necessarily equivalent to writing the code in the first place. Therefore, you must only ever being verifiying a subset of the things you might care about. Some combination of the above? I'm just not convinced. No, as far as I can see, you simply cannot generate this much code in general without a high tolerance for nasty (silent) bugs.

My feeling is that another path is required. Assume that we want to be able to read the code that our agents generate, and must therefore limit its volume. Our answer traditionally was code-reuse through well-designed libraries and languages, and I don't see why this isn't what we should do moving forward. Plainly, the ones that we have at the minute aren't quite what we need, as evidenced by the volume of code which is getting generated, so we'll need new ones. It's pretty well-understood at this point that the quality of the codebase that you get an agent to operate on has a strong effect on how well-structured and readable the code that it generates is, so I don't see why we shouldn't expect something similar to happen when we give an agent access to "better" abstractions to work with. Happily, the design space has opened up a bit, precisely because of AI.

Firstly, code just needs to be easily read by a human, not written. Possibly this lets us increase the surface area of our libraries, thus covering more things. Lots of libary code has the property that it's hard to find the thing you want, but it's very easy to verify that you indeed have when it's put in front of you. Care would be needed to avoid a proliferation of foot-guns (clear naming, minimising the use of implicit arguments, carefully thought-through structures, etc), but it seems like something worth exploring.

Potentially more important is that we might be about to be able to almost entirely stop worrying about the performance implications associated to our abstractions, thus freeing us up to focus our designs on what sits nicely in people's brains. My thinking here is that we're likely to see some pretty amazing new kinds of compilers emerge through the combination of AI and formal verification. I'm pretty sure that other people are thinking this too.

In summary, my view is that we're still in the fairly early days of getting AI to programme for us, and that there's a lot left to figure out. I've not discussed formal verification here, but it would amaze me if it doesn't also have a large part to play in this story. Of course, I might well soon discover that I'm wrong, and I'll be saying something entirely different this time next year.