logoalt Hacker News

coldteayesterday at 11:40 PM1 replyview on HN

>I write detailed specs. Multifile with example code. In markdown. Then hand over to Claude Sonnet. With hard requirements listed, I found out that the generated code missed requirements, had duplicate code or even unnecessary code wrangling data (mapping objects into new objects of narrower types when won't be needed) along with tests that fake and work around to pass.

Stop doing that. Micromanage it instead. Don't give it the specs for the system, design the system yourself (can use it for help doing that), inform it of the general design, but then give it tasks, ONE BY ONE, to do for fleshing it out. Approve each one, ask for corrections if needed, go to the next.

Still faster than writing each of those parts yourself (a few minutes instead of multiple hours), but much more accurate.


Replies

dieortinyesterday at 11:41 PM

Might as well just write the code yourself at that point. And as a bonus, end up with a much better understanding of the codebase (and way better code)

show 1 reply