| ▲ | nromiun 4 hours ago | |
> The spec ended up being 6KiB of English prose. The final implementation was 14KiB of TypeScript. Wait, this is how people vibe code? I thought it was just giving instruction line by line and refining your program. People are really creating a dense, huge spec for their project first? I have not seen any benefit of AI in programming yet, so maybe I should try it with specs and like a auto-complete as well. | ||
| ▲ | linsomniac 3 hours ago | parent | next [-] | |
Yes, definitely! The AI tooling works much like a human: it works better if you have a solid specification in place before you start coding. My best successes have been using a design document with clear steps and phases, usually the AI creates and reviews that as well and I eyeball it. Lots of people are using PRD files for this. https://www.atlassian.com/agile/product-management/requireme... I've been using checklists and asking it to check off items as it works. Another nice feature of using these specs is that you can give the AI tools multiple kicks at the can and see which one you like the most, or have multiple tools work on competing implementations, or have better tools rebuild them a few months down the line. So I might have a spec that starts off:
And then I just iterate with a prompt like: | ||
| ▲ | weakfish 3 hours ago | parent | prev [-] | |
I’ve always heard (despite the incredibly fluid definition) that “vibe” coding specifically was much more on the “not reading/writing code” side of the spectrum vs. AI assisted code writing where you review and tweak it manually | ||