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

Question

You're building an export-to-PDF service in Node/TypeScript with an AI agent: users export reports (tables, charts, page breaks) to a downloadable PDF, generated server-side and potentially large/concurrent. Describe the build plan: library choice (headless-Chromium vs. a PDF DSL like PDFKit vs. wkhtmltopdf), how you sequence it, the resource/concurrency controls, and acceptance criteria. What does a careless 'generate a PDF from this HTML' prompt get wrong in production?

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.