> may not fully get what's happening when a bug occurs.
And may still not understand even when you explicitly tell it. It wrote some code for me last week and made an error with an index off by 1. It had set the index to 1, then later was assuming a 0 index. I specifically told it this and it was unable to fix it. It was in debug hell, adding print statements everywhere. I eventually fixed it myself after it was clear it was going to get hung up on this forever.
It got me 99% of the way there, but that 1% meant it didn’t work at all.
Ironically, just yesterday I asked sonnet to write a script in JavaScript, it went in a bit of a perpetual loop unable to provide an error free script (the reason for the errors were not immediately obvious). I then mentioned that it needs to be zero indexed, and it immediately provided an issue free version that worked.
Joking aside, even with AI generating code, someone has to know how to talk to it, how to understand the output, and know what to do with it.
AI is also not great for novel concepts and may not fully get what's happening when a bug occurs.
Remember, it's just a tool at the end of the day.