upvote
Well it 'working' is a part of it being correct. That is still something of a guardrail on the AI completely returning garbage output.

Also, your point is true of non-AI code, too. A lot of people write bad code, and don't check for non-happy path behavior, and don't have good test coverage, etc.

If you are an expert programmer and learn how to use AI properly, you can get it to generate all of those things correctly. You can guide it towards writing proper tests that check edge cases and not just the happy path.

I think a lot of people are having great success by doing this. I know I am.

reply