← Back to context

Comment by wg0

8 days ago

I agree. The code despite detailed spec reveals bugs and edge cases upon inspection.

I'm talking Claude Opus 4.6 here.

For all we know, some important clients might just be getting better service out of Anthropic's/OpenAI's "black boxes".

The spec needs to be explicit about edge and corner cases.

  • At some point such a spec converges to the actual code you’d have written.

    • I've actually tried that and it helps. First I create a PRD type doc, then I have the AI break it down in a task doc, including code snippets where relevant. This helps it to think through edge cases before it starts implementing (oh we need X now, but that means we should have done task 3 differently to allow that).