r/programming • • Oct 07 '26

[ Removed by moderator ]

/r/programming/comments/1wzob2x/removed_by_moderator/

[removed] — view removed post

413 Upvotes

313 comments sorted by

View all comments

Show parent comment

29

u/lelanthran Oct 07 '26

is it true tho?

If it isn't right now, it soon will be.

I am trying to build an app with Spec-Driven Development, and oh boy, it is exhausting - I have to think about every boundary, edge-case, limitation.

That's odd - my experience with SOTA is that it will happily over-engineer everything, for every theoretical edge-case, for every theoretical limitation.

Then, after reading 900 line markdown document specifying exactly how a directed cyclic graph must work in the specific problem domain, I find myself wondering WTF it missed an important specification, like specifying that a joining node (multiple incoming edges) should distinguish between racing (first edge cancels sibling paths) and completion (wait for all edges).

Maybe this is what is exhausting you - it will happily specify, then engineer, trivial irrelevant details (such as traversing the graph to ensure only a single start node is specified), while missing catastrophic-if-seen-in-production things, so then you are trying to backfill the spec after reading it multiple times.

52

u/marrsd Oct 07 '26

900 line markdown document specifying exactly how a directed cyclic graph must work in the specific problem domain

And this is the problem. We've gone from DSLs that allow us to clearly define and understand an implementation to woolly language that serves to confuse us.

The code Is the specification. Just write the damn code! (I'm shouting into the ether, not at you)

7

u/syklemil Oct 07 '26

We've gone from DSLs that allow us to clearly define and understand an implementation to woolly language that serves to confuse us.

Though this isn't the first time that's happened; we've had multiple bouts of "fuzzy language that's easy to get started with but hard to get right, especially in complex cases". JS and PHP have been the prime examples for that for a while, and they've both moved in the direction of trying to become more rigorous (see e.g. the addition of === in both languages, or the invention of Typescript).

I'm not quite sure what, if anything, will turn out to be the equivalent of TS for natural language in markdown files.

4

u/marrsd Oct 07 '26

I get what you're saying, but it's a completely different order of magnitude. A competent JS or PHP dev can easily work around those things.

I'm not quite sure what, if anything, will turn out to be the equivalent of TS for natural language in markdown files.

Code is the equivalent. People have actually tried to write natural language parsers before. It doesn't work. An academic could probably prove it doesn't work mathematically.

1

u/le_birb Oct 12 '26

A vague gesturing at the phrase "word-sense disambiguation" probably gets you 90% of the way there

12

u/about0 Oct 07 '26

But isn't that 900 LOC generated document is exactly a problem? You don't own it, you don't know what it does, how it affects other parts of the code.

You just allow LLM to test itself.

SSD specifically telling that a human is owner, a human should write specs, a human should tell what is expected in return and verify it.

I won't sleep well if I won't have means to test what LLMs produce.

-6

u/manythanksfriend Oct 07 '26

Ever used a code generation framework(pre-LLM) or a compiler?

12

u/about0 Oct 07 '26

sure, but aren't they quite different?

with OpenAPI you have a specific documentation format that deterministically translates from a spec to a binary/AST. Between builds the result is the same.
While SSD, on the other hand, even highly structured Markdown rely on semantic interpretation, LLM doesn't fail if some boundary isn't set, and what is the hardest thing for me, I have to write a specification so dense, rigorous, and boundary-complete that the spec itself approaches the complexity of code.

While I see your point, I think these things are fundamentally different despite being relative.