Settings

Theme

Ask HN: Vibe coding with reusable components to reduce hallucinations?

1 points by zavg 4 months ago · 1 comment · 1 min read


Idea: Instead of pure “vibe coding” (just letting ideas flow into code), what if we first vibe code a bunch of reusable components with well-defined, predictable APIs between them? Then we ask AI to vibe code using only these components.

The hope: by constraining the building blocks, we reduce unpredictable hallucinations that often happen when vibe coding an entire monolithic codebase from scratch.

Has anyone tried this? Does it work in practice?

phren0logy 4 months ago

Sure, it works pretty well. Work on one part at a time, then generate clear documentation for each part. Keep the api simple. Probably all of this is a good idea with our without LLMs.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection