If AI write bugs, then "use the stones to destroy the stones".
Research results are encouraging already:
https://2021.msrconf.org/details/msr-2021-mining-challenge/3/Applying-CodeBERT-for-Automated-Program-Repair-of-Java-Simple-BugsThat won't replace all the CS gray-beard in a year, but I think in 10 years AI generated code will be the norm.
We all need to understand that
the working principles of AI are no different from how the human mind is working, therefore AI would be able to do everything a human can, in terms of intelligence. It is only a matter of the size of the network that still gives us an advantage. The soon we recognize we are not the center of the Universe, the better.
We are all in denial right now, but there is knowledge in piles of data, and we just learn how to make use of that.
Any pile of data also stores knowledge, and that can be extracted by simply classifying the data, by looking at similarities and correlations. It doesn't matter what that data is about, it can be literature/video/audio/programming/whatever. And once you have the knowledge, the patterns, the notions learned from data, you can use the patterns to extrapolate, and thus create something new, or simulate a hypothesis in order to predict what will happen, and so on.
That is why having a brain is advantageous, because it can predict the outcome in advance. You don't have to wait for the tiger to kill you first, you can "see" the outcome, you can predict, and plan for how to escape fate. Otherwise why keeping a brain, it's a very energy intensive organ and hard to feed.
The brain is an Oracle, it can predict the near future. We wouldn't be able to do the simplest thing, like walking a room, without predicting the outcome of each and every step in advance. This is happening in an automated way, and we are not aware of it. We think we "see" the surrounding, but experiments tells we rather simulate the surrounding. The data stream coming from the eyes is only adjusting the simulation so it won't diverge too far. The brain is continuously simulate what we "see" or "feel"
in advance.
Mind is nothing but a driven illusion.
A very brief simulation, in regards to the complexity of the objective reality that surrounds us.
Back to our very recent AI breakthroughs, I think the true value of collecting and hoarding data is exactly this, the unseen knowledge stored in that data, targeted commercial is peanuts. Data rush is the new gold rush. Whoever will get that faster will become more powerful. A human mind can not process billions of records, machines can. That will reveal patterns no human can see.
Yes, AI it's statistical and can make mistakes. Just like us, humans. We both have these pitfalls because we work on the same principles. We extract knowledge from floods of data streams. We compress past experiences into nuggets of wisdom. This is what the AI has achieved, too. It is happening, denial won't make it vanish.
There is one last straw that we still have, while the machines don't have it yet, self-reproduction.