Code Room
Vibe codingMediumvc-g396
Subject Ai system comprehensionLevel Mid–Senior~17 minCommon in Algorithms & data structures interviewsIndustries Software development

Question

Onboarding to a service, you ask an AI to identify which code paths handle the /checkout endpoint so you can find where to add a discount step. The agent traces it confidently to CheckoutController.process() and says "that's the only handler; the legacy CheckoutV1 module is dead code you can ignore." You're tempted to take that at face value. How do you verify the V1 module is actually dead before designing around it?

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.