Machine Coding
Software development when machines write the code: directing, organising, evaluating, and improving machine-produced software.
The Walk That Changed How I Program
I had been programming for nearly thirty years, and I knew how much work could hide behind a few hundred lines of code. For about a year I had been trying to get to grips with machine learning, and I was getting nowhere fast. I read papers, studied implementations and wrestled with unfamiliar ideas. Occasionally I got a notebook working or wrote a blog post. But I was spending most of my time learning how to write the software instead of discovering what I could do with it.
Then, shortly after GPT-4 appeared, I was out walking my dog.
I had come across a research paper from Facebook and had an idea: what if I turned the research into a trading system? Ordinarily, I would have spent weeks studying the algorithms, writing code and debugging my misunderstandings before I had anything worth trying.
Instead, I gave the problem to GPT-4. Here was the paper. Here was what I wanted to explore. Could it help me build it?
In what I remember as about three minutes, it produced a couple of thousand lines of code.
I knew enough about programming to recognise how much work the machine had done, and I was fairly sure the code would run. I also knew I could not have produced it myself in anything like that time. When I got home, I tested it. With a few minor changes, it worked.
That did not establish that I had a profitable trading strategy. It established something different: an idea that would have occupied me for weeks had become an experiment I could run that evening.
I remember the clarity of that moment. My days as a coder were over.
I did not mean I would never read source code again, or that I could trust everything a machine produced. I meant that I no longer saw writing the implementation myself as the best way to create software. I wanted to explore ideas and see them become real. Now I had a different way to do that.
That is where this book begins: with the recognition that the work has changed, and the decision to change with it.
An Opinion on the Future of Coding
This book is about machine coding.
It is also an opinion.
Some people use AI to assist with programming. Others delegate entire implementations. Some review every change; others build systems that work for extended periods with limited human involvement. There is no definitive way of working with this technology. We are still discovering what it makes possible.
What follows is the approach I have developed through practical experience building software with AI. You need not adopt it. But I have arrived at a conclusion that shapes almost everything I now do:
Coding is becoming a solved problem.
Not software development. Not the creation of secure, dependable systems from arbitrary instructions. I mean the activity of translating an understood requirement into code. For a growing range of work, machines can do enough of that translation reliably, with appropriate verification, that writing the implementation no longer needs to be the human’s primary occupation.
That changes the nature of software development.
For decades, we treated the ability to write code as the defining skill of a software developer. We learned languages, syntax and frameworks because we had to translate our intentions into instructions the computer could execute.
Now we have a machine that can read and write code, examine repositories, run tests, diagnose failures and consider alternative implementations.
This is not simply a better editor or a faster autocomplete system.
It is a change in the division of labour.
I believe the responsibility for producing code should increasingly move to the machine. Our attention can then move towards what we want to create, why we want to create it, how it should behave and how we know whether it is good.
The complexity of engineering has not disappeared. A machine can produce thousands of lines of code in minutes. Those lines may be elegant, unnecessary, incorrect or dangerous. The ability to generate them is not evidence of progress. What matters is what they accomplish.
This book explores how to direct the work, organise it, preserve knowledge, evaluate results and improve what we create. But the opportunity goes further. We can build to discover what we want, think with machines, combine different kinds of intelligence and begin to create software that participates in its own maintenance and improvement.
I will draw on systems I have built, experiments I have conducted and mistakes I have made. You do not need to be an experienced programmer to begin; the practical exercises are an invitation to discover what you can create for yourself.
I make no claim to having the final answer. I want you to try these ideas, challenge them and develop a way of working that is yours.
But I do have an opinion.
The future of coding is that the machine does the coding.
The human has a different job.
Chapters
The New Programming
From telling the computer how to work to organising machines that develop software.
The Foundation Charter
Choose dependable foundations before delegating substantial work to machines.
Configuring Your AI
Spend strong intelligence on design and review; use economical intelligence for bounded implementation.
Intent Before Implementation
Discover what is worth building through exploration with the machine, before specifying it.
Give the Machine the System
Establish the world the software must work within before the machine chooses an implementation.
The Work Package
Decompose intention into bounded assignments machines can complete and applications can absorb.
Configuring Your Coding Machine
The model is only part of the system; configure the whole machine that turns assignments into software.
A New Approach to Technology
From operating technology to directing it: amplification, compression, and machine coding.
Getting a Feel for the Machine
Recognise whether the machine is progressing, struggling, or lost — and respond by directing, not by taking over.
Follow the Process
Keep the discipline of branches, commits, and notes even when the machine does the work — because legibility is the point.
Stop Slopping
Stay in control of what the machine creates without taking over its work.
It Happened Overnight
When a programming skill becomes machinery, and what that suggests about source code.
Build to Find Out
When building is cheap, the built thing becomes the fastest way to discover what you want.
Think With the Machine
Using AI to understand problems, explore ideas, research possibilities and improve what you create.
Read the Product, Not the Code
The machine reads the code; you read the product. How quality is judged when the machine does the coding.
A New Approach to Quality
When everyone can build, what makes something worth having? Quality, purpose, standards, and the people a creation serves.
Keeping Up With the Machine
When your most important tool never stops changing: follow what matters, test what changed, and build a machine to help you watch the machines.
Make the Machine Yours
From a general AI to your own working intelligence: context, memory, instructions, roles and tuning — and how to tell whether it worked.
Different Tools for Different Jobs
Choosing the right intelligence: which available, permitted AI — or no AI at all — is right for the job in front of you.
When Machines Work Together
You, the machines and the living product: directing several intelligences towards one objective, and keeping what works.
ALIVE — Living Technology
Building software that can help maintain and improve itself — the vision, what ALIVE has actually demonstrated, and what it has not.
This Is Your AI
Your ideas. Your machine. Your future. The book returns to the reader.