Code Room
Vibe codingMedium
Question
An AI generated this Lambda (Python) that sends a welcome email by enqueuing async work and returning immediately so the caller isn't blocked. Some users never get the email and there's no trace. What's the design flaw?
import asyncio def handler(event, context): user = event["user"] asyncio.get_event_loop().create_task(send_email(user)) # fire and forget return {"statusCode": 202}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.
Learn the concepts
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.