DevPrep

All topics › AI-assisted development

Hallucinated and deprecated APIs: how do you check AI code?

Junior PRO

Essence

The most common AI mistakes in iOS code are hallucinated and deprecated APIs. The former don't compile or, worse, compile but call something else. The latter compile with a warning or with no warning at all. Checking takes a minute if you know where to look.

The rest of this answer, with code and interview follow-ups, is in the DevPrep app.

Read the full answer in DevPrep

Practice this before your interview

DevPrep turns these answers into one-minute challenges: what does this code print, find the bug, mock interviews. One challenge a day.

Get DevPrep on the App Store