Ask HN: Why spec-driven development when code IS spec?

2 points by kikkupico ↗ HN
Code, as such, is a detailed, verifiable spec that a machine can execute. LLMs are already great at translating code to natural language and vice-versa. Why do we need a second, less detailed and less verifiable copy of the code?

2 comments

[ 3.5 ms ] story [ 13.9 ms ] thread
> Why do we need a second, less detailed and less verifiable copy of the code

Because it requires people to know how to read or specify code.

Spec driven development is similar to the no-code movement i.e. the specs are closer to functional requirements than this strict spec or code.

You can argue that you can just ask the LLM to explain back and forth but it can still be too much.

The answer is exactly on you question. Code is detailed. It need to has every implementation detail, a spec is high level view demoted of all unnecessary details!