There is one fundamental flaw with the AI generated code: unmaintainability and unpredictability.
An attempt to modify the already generated specific piece of code or the program in general will produce an unexpected result. Saving some money on programmers but then losing millions in lawsuits or losing customers and eventually the whole business due to an expected behaviour of the app or a data leak might not be a good idea after all.
Takes like this miss the forest for the trees. The overall point is that automated programming is now a target, just like automating assembly lines became a target back in the day. There will be kinks in the beginning, but once the target is set, there will be a huge incentive to work out the kinks to the point of near full automation
Oh, I just mention how dinosaurs were too big to fail; it really helps when the whole team starts making fun of them for saying something stupid like that.
Unmaintainability? You should see the stuff some of my colleagues write. I'm fairly certain GPT could outperform them in the readability/maintainability department at this point.
You're assuming that AI-based code is even that minimally good.
Here's a nice litmus test: Can your AI take your code and make it comply with accessibility guidelines?
That's a task that has relatively straightforward subtasks (make sure that labels are consistent on your widgets) yet is still painful (going through all of them to make sure they are correct is a nightmare). A great job to throw at an AI.
And, yet, throwing any of the current "AI" bots at that task would simply be laughable.
An attempt to modify the already generated specific piece of code or the program in general will produce an unexpected result. Saving some money on programmers but then losing millions in lawsuits or losing customers and eventually the whole business due to an expected behaviour of the app or a data leak might not be a good idea after all.