In recent weeks, the world has been struck by several widespread outages. A big supermarket chain had to turn off all its online services. Cooling systems of several supermarkets were hacked. Microsoft services went down for a full day, including email and collaboration tools. US airfare went down (multiple times). The National Security Agency of the US was dealing with their systems going down. Banks were having problems and became unavailable. And there were many problems on a smaller scale as well, such as online stores losing security measures.
At first, in many of these cases we were told that “it is not AI.” Later on, AI was indicated as the culprit, but in a way that it was not really the fault of AI, but due to AI capabilities. We were told AI is so efficient that unfortunately hackers have an easier job getting into systems. And AI was so good at finding errors in systems that we were forced to release patches, and some of these patches were simply bugged and that is where things went wrong. And AI was so good that older systems had problems running it and so they went down. I think that the vapid excuses for AI are probably the result of the financial investments that many “decision makers” have in AI. The fear is that the message “AI is actually a bad idea” will have a serious negative impact on the economy.
While the rather vague explanations may be valid in some situations, I am convinced that misuse of AI is actually what is causing most of the problems. In particular, deploying “vibe coded” applications is likely to be the root cause of what we see happening. AI is reasonably good at coding, but it is not great at it. It does not understand what it is doing. It is simply copying existing code and recombining existing code snippets which seem to be able to do the required task, and then it compiles the generated code until it produces no compiling errors anymore. It is then up to humans to test what is generated and decide whether or not it should be deployed. However, testing complete applications is unlikely to reveal all internal problems of the code. And those problems are only revealed after deployment.
Testing programs is done for at least two reasons: (1) to reveal and fix errors, and (2) to determine whether the programs have the required functionality. Testing for errors is mostly done during development. Testing functionalty is done after the program is finished.
Many errors are much easier to detect during development, because human programmers test little pieces of code while developing. A human programmer generally writes a few lines of code and then tests them, to make sure that they do what they are supposed to do, before continuing with the rest of the program. That way, when an error is created, it tends to be easy to detect it and fix it. A good programmer tests very deliberately, focusing on those events that may be a problem for the few lines of code they just wrote. An AI does not do that.
Considering how many junior-level programmers have been fired in the last year, to be replaced by AI, I am not surprised that many sensitive systems are failing now. The job of testing programs has become much harder and much more time-intensive than it once was. In many cases, I don’t think it is done well.
As it once was my job, I can say from experience that testing and fixing complete programs written by others is much harder to do well than writing code. The reason is that studying someone else’s code requires one to discover the original programmer’s thought process. The more complex and unique the program, the harder that is.
I am not saying that there is no role for AI in writing code. AI can help a programmer finding solutions for problems they are trying to solve, can help discovering bugs, and can help writing code documentation. But if it is employed as a programmer replacement, very serious system errors are bound to pop up.
Posted by pspronck