Code Room
Vibe codingHard
Question
This SQS batch Lambda (Python) processes up to 10 messages per invocation. The AI wrapped each message in try/except so one failure doesn't kill the batch. QA reports that failed messages silently disappear instead of retrying. What's the flaw?
def handler(event, context): for record in event["Records"]: try: process(json.loads(record["body"])) except Exception as e: logger.error("failed: %s", e) return {"ok": True}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.