Code Room
Vibe codingEasyvc-g297
Subject Ai collaborationLevel Mid~12 minCommon in Algorithms & data structures interviewsIndustries Software development, IT services

Question

You asked an AI agent to "add input validation" to a Bash deployment script, and it returned a 60-line diff that — beyond adding validation — also refactored the argument parsing, renamed two variables, and added a `set -euo pipefail` at the top. It all looks fine and the script still runs. You're opening the PR. What's the responsible way to describe and scope this, and what's the risk in just titling it "add input validation" and moving on?

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.