> The AI has no idea how this particular case differs from the sample code it was trained on
It can eventually figure a lot of things out if you provide the correct requirements and examples. However, the caveat with all of this is that you already have to be a good programmer to:
- know what is needed
- know what the solution should more or less look like
- spot bugs in the AI's solution
- describe the problem, examples etc in a way that the AI can work with
If you're already a good programmer, the time spent wrangling the AI could be spent writing the solution yourself.
My feeling is that the most value from AIs will come from when you get hopelessly stuck on a problem. An AI could provide some initial steps or ideas that can get you unstuck, effectively working as a rubber ducky. You're unlikely to copy the AI's solution, but it could provide some random insight that helps you take a step forward.