AI Can Make Mistakes. Programmers Still Need to Catch Them.
In the follow-up to AI Is Not Replacing Programmers, It Is Making Us Better, there is an equally important point to make:
AI is a powerful development tool, but it is not a substitute for judgment.
At the bottom of nearly every AI input screen is some version of the same warning: “AI can make mistakes. Check important information.”
For programming, that warning should be taken seriously.
AI can write code, explain an unfamiliar function, suggest a database query, draft unit tests, identify possible edge cases, and help troubleshoot an error much faster than working alone. It can be an excellent second set of eyes. It can reduce repetitive work and help a developer get from an idea to a workable starting point quickly.
But AI does not understand a project in the same way a programmer does. It does not automatically know the full history of the codebase, the client’s unstated expectations, the reason an unusual piece of code exists, or the interaction between a small change and five other parts of the system.
That is why a blind copy, paste, launch to production approach will usually create more problems than it solves.
AI Produces Suggestions, Not Finished Work
The danger is not that AI is incapable of producing useful code. It often produces very useful code.
The danger is assuming that useful-looking code is automatically correct.
AI-generated code can be clean, well formatted, and convincing while still being incomplete. It can call a function that does not exist, use an outdated method, misunderstand the requirement, remove a validation rule, introduce an accessibility issue, or solve only the narrow example it was given.
A response can be technically correct in isolation and still be wrong for the project.
For example, an AI assistant may be asked to update a form. It might correctly add a new field, validate it, and submit it to the expected endpoint. But it may not know that the same form is used in three places, that one version needs a different message, that another site has a custom integration, or that the new field contains information that needs extra privacy protection.
The developer understands the wider system.
AI only understands the information it has been given.
The Missing Context Problem
When requesting edits from AI, precision matters.
I have seen AI remove code or features simply because it was not explicitly told that those features needed to remain. If an instruction says, “clean this up” or “simplify this code,” the AI may decide that part of the code is unnecessary.
Sometimes it is right.
Sometimes it removes something that appears redundant but is actually supporting a feature elsewhere in the application.
That is not malicious behaviour. It is a limitation of context.
The AI may only see the file, function, or code block placed in front of it. It may not see the JavaScript that depends on a CSS class. It may not see the WordPress template that expects a particular field name. It may not see a third-party plugin, a browser-specific workaround, or a piece of legacy code that exists because a client’s business process depends on it.
This is why good prompts help, but prompts alone are not enough.
A programmer still needs to understand the change, review the result, compare it with the original, and test the feature in the real environment.
When “Clean-Up” Removes the Site
I had a CSS file that was roughly 1,200 lines long.
Anyone who has inherited or maintained a long-running website has seen this happen. A stylesheet starts small, then new features are added, old styles are adjusted, another developer contributes changes, a campaign page needs an exception, a responsive issue appears, and suddenly the file is much larger than anyone intended.
Over time, you can end up with duplicate selectors, redundant rules, old overrides, and styles that could be organized more clearly.
That is exactly the kind of task AI can be useful for.
I asked it to review the CSS, clean up duplicate and redundant selectors, and—importantly—not remove any features.
It returned a very clean-looking stylesheet of approximately 200 lines.
At first glance, it looked impressive. The formatting was consistent. Repeated rules had been removed. The structure was easier to read.
But there was no realistic chance that nearly 1,000 lines of CSS had been unnecessary.
Had I trusted the result blindly, more than half the site would have lost its intended design and looked like something from the early days of the commercial web.
I mean it was the 90’s.

The issue was not that AI had failed to make the file shorter. It had succeeded at that goal too aggressively.
It had removed selectors that appeared unused or repeated within the CSS file but were relied on by templates, page builders, responsive states, plugins, and specific parts of the website. Some rules existed to override other rules under certain conditions. Some only appeared on a single page. Some mattered only on mobile. Some were tied to JavaScript interactions.
The AI could see patterns in the stylesheet.
It could not fully see the site.
Faster Output Can Mean Faster Mistakes
AI makes it possible to produce a large amount of code quickly. That is valuable, but it can also accelerate bad decisions.
A developer can now create a new abstraction, add a dependency, rewrite a component, or generate an entire feature in minutes. If the underlying decision is wrong, the team can create technical debt much faster than before.
The goal is not to produce the most code in the shortest amount of time.
The goal is to solve the problem correctly with code that is readable, testable, secure, accessible, and maintainable.
That means AI-generated work should go through the same process as any other change:
- Review the code line by line.
- Compare it with the original.
- Check the Git diff for unexpected removals.
- Test the feature that was requested.
- Test related features that may be affected.
- Review mobile behaviour, accessibility, and error handling.
- Confirm that existing data, integrations, and user workflows still work.
- Avoid merging or deploying code that nobody understands.
AI can make these steps faster. It cannot remove the need for them.
The Programmer’s Role Is Evolving
This is one reason AI is not replacing programmers.
The value of a programmer was never simply the ability to type a thousand lines of code. The value is in understanding what those lines should do, what they should not do, and what may happen when they interact with the rest of a real system.
A developer notices when a variable has been removed because the AI only considered one code block. They recognize when a generated query may affect performance. They see when a suggested change breaks backward compatibility. They understand the difference between a working demo and a production-ready feature.
AI can generate possibilities.
The programmer decides which possibility is appropriate.
That role may mean spending less time writing repetitive code and more time reviewing architecture, validating requirements, testing behaviour, protecting users, and ensuring the finished product solves the right business problem.
That is not a smaller role.
It is a more important one.
Use AI as an Assistant
AI is at its best when treated as an assistant: fast, available, helpful, and worth consulting—but not accountable for the final decision.
Ask it to suggest. Ask it to explain. Ask it to identify edge cases. Ask it to draft tests. Ask it to challenge your approach.
Then review its work as carefully as you would review code from a new developer who is talented, fast, confident, and unfamiliar with your project.
AI can help programmers work better.
But the programmer still needs to make sure the code is what the product needs, meets the required standards, and will not crash the site because an interaction, feature, variable, or business rule was missed.