Code Room
Vibe codingMediumvc-g324
Subject Ai build planLevel Mid–Senior~20 minCommon in Algorithms & data structures interviewsIndustries Software development

Question

You're building a search-as-you-type box in React + TypeScript against a `/search?q=` API, greenfield, and handing it to an AI agent. Spell out the build plan: the client-side debounce/cancellation strategy, what the API contract needs, the acceptance criteria, and the review gates. What does a careless 'add a live search box' prompt get wrong about correctness and load?

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.

Describe your solution

Vibe coding: describe the solution in plain language (or narrate it) and the coach grades your approach. Generating runnable code from your description is coming next.

Run or narrate your approach, then ask the coach.