With the rise of AI there is, as of this writing in the middle of 2026, a growing number of publications, videos, etc. out there that claim that code is now cheap.
Depending on the details, this can be correct or completely wrong.
So let me rephrase the problem. We are not looking at creating code, but creating the code that we want. Yes, that sounds a bit stupid, given that we would obvioulsy not create code that we don’t want to create. The tricky part lies in “what we want”.
Requirement types
It is surprising how many facets this “what we want” has. The code is a deliverable of a “project”, where project is used in a rather broad meaning. So it can be a fully grown project with a huge budget. Or it can be a relatively small change that the business had requested. Either endavour has requirements, and those requirements need to be satisfied by the implemenation, of which the code is usually a major part.
Without going too deep into this, there is one common distiction between requirements: functional and non-functional. Functional requirements is mostly defined by what the business wants. So we are talking about a business-level change like adding an approval layer, scoring customers by a set of criteria, etc.
In contrast, non-functional requirements tend to come from the technical side. Things like performance and resilience are typical candidates.
What about code quality?
One aspect that in this dichotonomy falls into the non-functional bucket is the code quality. The term quality is interesting in and off itself and many different definitions exist.
A common way to describe it is:
Quality is determined by how well the properties that the user needs are met.
Interestingly, the first time I came across this, was not in the context of software or IT. Instead it was in university during a seminar for my major about production management.
A lot has been written about code quality over many decades (it certainly goes back to the 1960s). The two aspects that stand out for me in this context are readability and ease of change.
Impact
You can probably see where I am going with this. Yes, it is really cheap to have AI generate lots of code for you. But in many cases it is not code that you want in its initial form. Instead someone qualified should look at it and change whatever needs to be changed to fit your organization’s requirements.
It is well known that senior developers spend much more time looking at code than changing it or writing new lines. In that sense not too much has changed with AI-generated code. You just saved yourself the inital round of manual creation.
Still you gained some time, and also AI-generated code is constantly improving (for various reasons). So depending on the experience of a developer with a given topic, the generated code may be surprisingly good.
What did we gain?
You may now ask what was gained? A lot, if you ask me. Using AI in the context of software development is a huge advantage, if done well.
Because we need to ask ourselves how the alternative looks like. Would a very senior developer with unlimited time be able to produce better code than the AI? Most certainly. But all too often you have a “normal” person and too little time.
What AI changes here, is that it removes the “clean sheet” problem. Every person I know can work much better, when they have a starting point that is not zero. Whatever the AI has generated, it gives people ideas. It should also be considered that a lot of time in programming is needed to figure out all the nitty-gritty details of syntax, API specs, etc.
So even with decades of experience the initial, AI-generated version is a huge help for me. It saves me an enormous amount of time, also in areas where I consider myself an expert. And much more so for things that are not my strongsuit.
Discipline is key
But very few things in live come for free, and AI-generated code is no different. I must withstand the temptation to glance over it, do some superficial testing, and call it a day. Instead I must inspect it as if I knew its author, while often doing great work, has a tendency to be really sloppy at times.
So I must basically do the first code review without involving another real person. The good thing is that this formalizes the process, compared to me simply checking in my code. How big of a difference that is effectively, depends on how your organization handles things. Overall, I think it is a good thing.
A key advantage
The fact that I didn’t write the initial version of the code, is a true value-add. Because I look at it just like I would at my own code, but after a few weeks. And we all know that this “mental distance” allows us to see issues much clearer. So we can think of this as a bit of a time capsule, which allows us to have better code, than we could initially have written ourselves.
When I wrote my first serious Java program in the very early 2000s, I had a part of the functionality working after the first day. I knew it wasn’t pretty, but it seemed a good-enough starting point for the next day. Only that it wasn’t.
The next day I opened up my IDE and stared at my own code, utterly unable to understand it. I refused to simply accept defeat and tried for several hours, but without success. So at around noon I finally surrendered and started over. Needless to say that, while far from perfect, that second iteration was much better than the initial version.
Introducing code reviews
Another good thing this approach brings is that it allows organizations that have so far not done code reviews, to introduce them in a gradual manner. Because if I have the first review with the code that was generated by the AI, that makes it much easier to try things. I can just play around, learn, and iterate really fast.
The even bigger advantage is that no ego can be hurt. If code reviews are new, it will make people anxious. Others finding my mistakes is never easy, and in some geographies it goes against deeply rooted cultural habits. If AI made the mistakes, things are much more relaxed.
There is a lot more to say about this, but that is for a separate article.
In closing
It’s been a while since I have written a somewhat longer text and it was fun. Also, it underlined my deep conviction that for non-trivial content, the use of AI to generate it, should be avoided. As always, I started with an idea in mind and during writing so many more things popped up in my head.
On the topic of this text, it hopefully brings across the idea that broad statements are a dangerous thing. Code creation and the cost associated with it, is really nothing special in that regard. As always, it is worth exploring things in detail to truly understand them.
© 2026 Christoph Jahn. All rights reserved. No reuse, redistribution, or AI training without prior written consent.