Iterating on Code AI-generated code rarely perfect on first try. Effective iteration gets you from "close" to "exactly right." Incorrect Code Vague Feedback "This doesn't work" Specific Feedback "The validation is incorrect: Current code: Problem: This allows updating a user's email to another user's existing email. The unique rule needs to ignore the current user. Fix: This allows the user to keep their own email but prevents duplicates with other users." Why it works: Identifies the specific problem, explains why it's wrong, shows the correct solution. Incomplete Code Vague "Something's mis…