Code RoomBuilding verification instinct in junior
MediumPrep Room Coding #4626

Building verification instinct in junior

Vibe & agenticAlgorithms & data structuresSenior~18 min

You're pairing with a junior who's fast and productive with an AI agent but accepts its output almost reflexively. In this session the agent generates a JavaScript function that deduplicates user records by email, and the junior is about to merge it — but it lowercases emails for comparison while storing the original casing, and your service treats the local-part of the email as case-sensitive in a downstream system. The junior didn't notice; the tests the agent wrote don't cover it. How do you handle the moment, and how do you build their verification instinct without killing their velocity?

Implement
dedup_user_emails(emails: list[str]) → list[str]
Examples
in[["Bob@Example.com","bob@example.com","Bob@example.COM"]]out["Bob@Example.com","bob@example.com"]
in[[]]out[]
in[["a@b.com"]]out["a@b.com"]
What a strong answer looks like

Treat the AI’s output as a draft to verify, not an answer to trust. Name the specific flaw and the input that triggers it, say how you’d catch it (tests, edge cases, reading critically), and how you’d re-prompt or decompose to get it right.

0:00 of about 18 min

Vibe & agentic: describe the solution in plain language (or narrate it) and the coach grades your approach.

Which questions mattered is sealed until you submit. Telling you now would just be handing over the edge cases.