5 Reasons Why Writing Code Still Makes Sense, Despite Having AI

Let's discuss if writing code still makes sense. Naturally, I believe, it does, but do you? To help you out, I'm going to give you five reasons why it does. Tell me if you agree.

Not sure how to use Docker Compose?

If you want to learn the essentials of images, containers, Docker, and Docker Compose, so that you can build local development environments and deploy your code, Deploy With Docker Compose is where you need to start.

Take a look!



Does the customer care, are they even interested in how their application was written (or other technical details, such as what language the application was written in)?

More than likely, no. Sure, some might be idly curious. But, arguably, so long as the software does the required job, solves the problem(s) that the user has, that it does so reliably — each and every time — and for a price that the user perceives value in, then, more than likely, how the application is built is not something they'll think about.

This is something that I didn't appreciate, early in my career. As a technical person, I just assumed that everyone thought like I did, and that customers and clients would be interested in what I was interested in. It wasn't until much later that, I came to fully appreciate that non-technical people (and I don't say that disparagingly) have a much different focus and set of priorities to mine. They wanted the outcome. How they got there was not particularly important. To be fair, if it was, they might also have studied software development, and written the application for themselves.

So, and this is a broad thesis of mine, if the software is delivered on time, works as stated, and is reliable in doing so, then it doesn't matter what it's written in, or whether the code was written entirely by hand, by AI, or using a combination of the two.

My point here is to encourage you, if you still want to write code by hand, if you still see value or joy in it, if you meet the stated criteria, then you should continue writing code by hand! If that's the case though, you need to learn how to do so, or maintain your software development skills if you already have them.

You should be cautious about overly-relying on AI-generated code

I've heard it said, anecdotally to be fair, that while AI can write tests, it doesn't necessarily write good tests. Here's a quote I found on Reddit, while researching this article:

AI might manage to generate tests that cover what the code currently does. What it definitely won’t do is generate tests that cover what the code is supposed to do.

Another Redditor responded to that comment with:

I agree, and I don’t think any AI tool can fully solve that today. The “should” comes from requirements, domain knowledge, and context that lives in a developer’s head not in the source code. What I think AI generation can realistically handle is the structural layer: does this function handle edge inputs, does it return the expected types, does it throw when it should. The semantic layer — “this calculation should use pre-tax amounts, not post-tax” — still needs a human writing that test. The value is saving time on the boring stuff so you can focus your energy on the assertions that actually matter.

Taking this point further, Go Codeo says that:

Developers must be cautious about over-reliance on AI without thorough validation.

They provide five reasons for this:

1. Lack of domain context

AI does not understand the domain or business logic unless explicitly trained or guided. A test case generated for a fintech application may ignore regulatory compliance, fraud detection scenarios, or localized business rules unless that information is embedded in the prompt or training data.

2. Hallucination and inaccuracy

LLMs can generate plausible but incorrect or meaningless test cases. They may misuse APIs, assume incorrect return types, or generate redundant tests. In some cases, they can introduce test cases that always pass but never assert anything useful, creating a false sense of security.

3. Security concerns

If AI tools rely on cloud APIs or shared models, sensitive code or business logic may be exposed during test generation. Organisations with strict security or data privacy requirements must validate how the AI model handles and stores source data.

4. Overhead in review

While AI can generate tests quickly, the review process must be equally rigorous. Developers must sift through dozens or hundreds of AI-generated test cases to validate correctness, relevance, and code style. This can offset the time saved in generation, unless aided by good filtering and evaluation logic.

While we're on this topic, consider this quote from Peter Hill at Synthesia:

I don’t know if we ever get to the point where you can truly trust the agentic generation of code. Hill says AI tools may not recognize that code for a task already exists, and they’ll write another version because they have limited context. Synthesia has found as many as 10 versions of the same function, leaving engineers to identify and remove redundant functions. Once that’s done, engineers retrain the AI agent so that doesn’t happen again. At the company’s scale, Hill describes getting the AI to produce the intended output an “enormous amount of work.”

5. Dependency on prompt quality

Garbage in, garbage out. The quality of test cases generated is entirely dependent on the quality of input prompts and available documentation. Poor prompts lead to shallow or irrelevant test cases that require heavy human intervention.

Given the comments and reasons stated above, you still need to code! So don't let those skills go to waste if you already have them — and start learning them if you don't.

If you want to learn how to write test code, specifically, I've linked to a series of good resources at the end of the article. While I write mostly in PHP and Go, the links that I've shared are, largely, language-agnostic.

While LLMs can write code faster than a human being, you don't, necessarily, have to write code faster

This is for several reasons. Firstly, LOC (Lines of Code) is a stupid metric to measure software quality by, because lines of code, on their own, is meaningless.

  • Are all of those lines necessary?
  • Do they contain duplicate functions, classes, and other lexicographical constructs?
  • Could the code, in one way or another, do the same job with fewer lines?
  • Does the code produced actually solve the required issues?

I'll explain my point with an analogy. Years ago, I learned that you don't have to be the fastest if you know what you're on about, and know what you need to do. You see, so many people, today, do a lot of things and produce a lot of stuff, but not necessarily much of value.

They do a lot of things because they, their boss, their organisation, or their society believe that if you're sitting still, being idle, there's something wrong with you. Perhaps you've heard the saying:

The devil makes work for idle hands

It's a misguided belief that people who have nothing to do are more likely to get into trouble or commit a crime, that they're being lazy, that they're incompetent, etc. To the best of my knowledge, the saying and the accompanying belief comes from the Christian Bible.

Unfortunately, it's pervaded so much of so many societies, in my opinion. It leads to people doing a lot of things and expending a lot of energy, but, in the end, they don't produce very much that actually means anything.

Perhaps I've been fortunate, but I don't, often, work that way. My focus is instead on first understanding what needs to be achieved, then working to achieve that in as few steps as possible. My dad always said:

Laziness is nothing if not carried out

That means that you don't do anything that isn't required. That might seem like I'm encouraging people to be lazy and to do as little as possible. That's not the case! Rather, I don't believe in doing work just for the sake of it. In doing so, you're as efficient as you can be, because you're focused solely on what needs to be done, not on pointless, superficial tasks that, which in the moment might seem interesting, but that ultimately, provide very little, if anything, of value.

And thirdly, so much software today, will never be used. But, pointless features are added for hype, and to convince customers that the software is an essential upgrade or a must have. Take the case of Apple Creator Studio (it includes Numbers, Pages, Keynote, etc).

It has nowhere near as many features as Microsoft Office, and that's the point. Years ago, when I was first getting into using the apps, I found them pretty bare bones in comparison to Microsoft Office, so did some reading about them. It turns out that Apple looked at the features in Microsoft Office that are used most of the time and put them front and centre, and then either didn't implement the others, or moved them to the background. The intent was, put effort into the things people actually use, and not that much into anything else.

To summarise, just because an LLM can generate phenomenal amounts of code in a short period of time, that doesn't mean it's the best choice. Maybe thinking that you have to compete with that is a flawed assumption. If you know what you need to do and do that, then you may turn out to be just fine. So, keep on learning your craft, and see how you go.

Because LLM-generated code isn't perfect, and has been shown, through numerous studies, to include bugs and other flaws, such as security flaws

This is understandable, as the training data would have included some flawed code. So it makes sense that it would reproduce it at some point. In an episode of the podcast, titled "AI can generate code - but it still needs human review", I discussed a study, titled "Security Degradation in Iterative AI Code Generation: A Systematic Analysis of the Paradox" which showed that, while it can generate a lot of code, that that code still needs to be reviewed.

Quoting the conclusion:

Our controlled experiment with 400 code samples across 40 rounds of generation (10 baseline samples × 4 prompting strategies × 10 iterations per sample) reveals that security vulnerabilities are frequently observed to persist and often appear to increase in quantity through iterative feedback loops with LLMs. Different prompting strategies are associated with distinct vulnerability patterns, with efficiency-focused prompts showing the most severe security issues and feature-focused prompts associated with the highest overall vulnerability count.

That, to me, strongly suggests that software development skills are still required.

And here's a quote from IEEE Spectrum:

Large language models can produce code that looks clean on the surface but conceals sloppy mistakes such as faulty assumptions, security vulnerabilities, or subtle errors that emerge only after deployment. Fixing those problems could erase the productivity gains AI promises.

That same article goes on to say that:

In a survey of more than 1,100 developers by Sonar, an AI code-verification startup, respondents estimated that AI contributed 42 percent of the code they added to shared codebases. Yet while developers found AI useful for explaining and prototyping code, 96 percent did not fully trust its output to work correctly.

Summing all of these points up, if you need to review code, even if you have AI do some of the work, you still need to be able to code. Otherwise, how can you be in a position to review it? Given that, you need to gain knowledge and experience writing software from somewhere. To that, I offer you what a good friend of mine once said, when I asked him how you write good software:

Write a lot of rubbish software. From each thing you write, learn something, even if it's tiny. Then, when you write more software, do better, based on what you've learned. It'll likely still be rubbish for some time, but it will steadily improve.

5. Because there is so much code out there in the wild that needs to be read and understood

The older an application is, the larger it likely is, and the more organisational knowledge will be baked into it. That code will cater to edge cases that once were not known, until they needed to be, to business rules that have accumulated over time, legislation that the application needed to comply with, such as, for example, The GDPR (General Data Protection Regulation) or The Australian Privacy Act 1988, and on and on the list goes.

Consider the following quote from Tom Hurtt at SimpleThread:

what constraints it was built under, and what problems it has encountered over its lifetime.

Or this one:

at its core it was an elegant system that had accumulated a lot of scars from being used every day by millions of computers all over the world.

But AI could do that, you might be thinking. Okay, if you're listening to this podcast, that might not be the case. Regardless. Remember that I quotes Go Codeo, earlier in the article, when they said:

AI does not understand the domain or business logic unless explicitly trained or guided.

Therefore, even in the "Age of AI", if AI is going to be trained on the domain or business logic in your applications, someone needs to be able to read the code. Therefore, they need to be able to code.

Those are five reasons why you should still learn to code, even in the Age of AI

I appreciate that, especially if you like using AI, that I may have come across as being a hater or bashing it. That's not my intention. I'm old enough to have lived through a number of boom and bust (or near bust) cycles in IT. There was the dotcom boom, the replacement for the floppy disk, the browser wars, and the Metaverse, to name a couple. Each of them was heralding in a new age, to one degree or another. Well, that was often, effectively, the claim.

To cut a long story short, I've learned that it's important to keep a critical and rational mind about technology, and the wider world, too. I don't mean that you should be outright sceptical. Just that you should appreciate that nothing is perfect. Everything has flaws and failings. Where possible and practical, make use of a given technology. But don't assume that it will be everything to everyone, all singing and dancing, and that it can do anything that you could imagine.

Finally, it's good to retain (or build) knowledge and skills, and to be able to do things for yourself. Personally, I find that both liberating and empowering.

Resources


Filed under
AI LLMs Security