13.2 Exemplary AI Failure
If you use a coding wizard such as GitHub Copilot, the AI tool constantly makes code suggestions. If you type for, the wizard suggests a loop over a data structure that appears in the previous lines. Entering // or # gets completed to a full comment by the AI tool, and so on. It’s clear that only a fraction of these unsolicited suggestions are useful.
It’s up to you to ignore unsuitable suggestions and avoid being distracted if possible. In this section, we don’t consider inappropriate suggestions to be errors; we don’t want to accuse the AI of not being clairvoyant. (You often get this impression, but it’s deceptive.) This section deals with “real errors” in which AI tools provide incorrect or misleading answers ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access