Ask HN: Why spec-driven development when code IS spec?
1–8 of 8 posts
Re: Ask HN: Why spec-driven development when code IS spec?
#2Because 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.
Re: Ask HN: Why spec-driven development when code IS spec?
#3Re: Ask HN: Why spec-driven development when code IS spec?
#4The 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!
Re: Ask HN: Why spec-driven development when code IS spec?
#5> 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.
But then you'd get an explanation tailored to your specific perspective instead of a generic one, right?
Re: Ask HN: Why spec-driven development when code IS spec?
#6> 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.
> You can argue that you can just ask the LLM to explain back and forth but it can still be too much. But then you'd get an explanation tailored to your specific perspective instead of a generic one, right?
Assuming you know how to ask the right questions and make sense of it. Tailored to whose perspective, especially in a team, which then might make it worse.
Re: Ask HN: Why spec-driven development when code IS spec?
#7The 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!
What do we gain by maintaining a high level view instead of asking an LLM to explain the code at a high level when required?
Re: Ask HN: Why spec-driven development when code IS spec?
#8Earlier quoted context omitted.
What do we gain by maintaining a high level view instead of asking an LLM to explain the code at a high level when required?
It captures the why and what of the system from a business or user perspective. Existing code don't inherently capture the original business problem or design choices that led to that code.