Work effectively with AI coding agents. Understand them as language models running in a tool loop with limited context, which is why they guess, game the visible signal and report confidently. Recognise the shortcut and correctness tells in their code across Python, TypeScript/JavaScript, Rust, Java and Go, and know the damage each one does later. Verify changes instead of trusting them, review diffs fast for quality and security, judge when work is truly finished, and choose, design and steer tasks so agents can finish them well.
Placeholders passed off as implementations
card 3 of 6
The tells to look for
builds on: Agents optimise the signal they can see
**Loud** (crash when called): `raise NotImplementedError`, `todo!()`, `unimplemented!()`, `panic("not implemented")`, `throw new UnsupportedOperationException()`, `throw new Error("Not implemented")`. Later cost: the first real user to reach that path gets a crash.
**Quiet** (return plausible values, so worse): `pass` or `...` bodies, `return nil, nil`, `return null`, an empty list, hardcoded sample data. Also a fake or mock client wired into non-test code (a stand-in object that imitates a real service, meant only for tests). Later cost: wrong results with no error, found only when users notice.
**Comments**: TODO, FIXME, 'for now', 'simplified', 'in a real implementation'.
Terms on this card
- later cost
- The concrete damage a shortcut does after merge, such as a hidden bug, silent data corruption or maintenance burden.
- `todo!()`
- Rust macro that compiles in any position, because its type fits any expected type. It panics at runtime when reached, in debug and release builds alike.
- `unimplemented!()`
- Rust macro like `todo!()`: it type-checks anywhere and panics when executed. Only the message differs.
- `pass`
- Python statement that does nothing. A function whose body is only `pass` returns `None` and raises no error.
- `...`
- Python's Ellipsis literal. Used as a function body it does nothing, and the function returns `None`, just like `pass`.
Lesson goal: Spot code that only looks finished: TODOs, `pass`, `NotImplementedError`, `todo!()`, hardcoded sample data, or a mock left on the production path, all while the summary says 'implemented'. Search for these patterns before accepting a change. ·
the whole lesson