One-Shot Image Viewer in 7 Minutes: Reddit User Shows Spec-Driven Prompting Method
ElatedPyroHippo · reddit · 2026-12-05
A Reddit user shares his prompting method for coding: eliminate ambiguity, because ambiguity—not the model—is what causes errors. He found people complaining about bad results from strong models were almost always prompting poorly.
- He posted a full example prompt: a Windows fullscreen image viewer specified in 9 numbered, unambiguous rules (centering/zoom behavior, scroll-through with Explorer ordering, digit keys to sort images into subfolders, instant delete honoring recycle-bin settings, stateless and portable).
- The result was a true one-shot: the model asked no clarifying questions, built it in C++, tested it thoroughly, and even provided a file-association setup script—costing just 0.6% of a $20/mo plan (12 cents).
- His advice: before criticizing the AI, imagine what questions a human contractor would ask and answer them in the prompt.
More from coding & agent
- Berkeley's FantasticML: 48 expert-verified tasks test whether AI can do ML research — BAIR Blog (Berkeley) · 2026-12-05
- Same Prompt, 4 Models: Opus 5.5 Took 1h49m and $41.57 vs Neon's $11.27 — iamfakhrealam · 2026-12-05
- Nanite-style virtualized geometry engine in WebGPU, built with Gemini 4 Neon — iamfakhrealam · 2026-12-05
- A swarm of agents packed 527K lines of code into one 26MB HTML file — iamfakhrealam · 2026-12-05
- DoorDash Cut LLM Search Costs by 98% With Decoupled Search Grounding Gateway — nilukush · 2026-12-05
- Founder: a 128GB MacBook Pro is the #1 investment for running 12 parallel coding agents — pramodk73 · 2026-12-05