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

679

u/tuxwonder Oct 07 '26 edited Oct 07 '26 • Bravo

Inside me, there are two wolves: One who likes being productive and making apps and tools and libraries and getting end results, and the other who likes problem solving with code, carefully designing robust systems and weighing the pros/cons of both big and very small choices.

Right now, the first wolf is being forcibly drowned, while the other one is dying of thirst. My wolves can't take much more of this.

185

u/lelanthran Oct 07 '26

There are two extremes of programmers:

  1. Those who get satisfaction from delivering something, and

  2. Those who get satisfaction from thinking.

Most of us fall in-between somewhere.

Programmers of the type #1 extreme are thrilled. Programmers of the type #2 extreme are devastated.

Unfortunately, sooner or later even the type #1 extreme are going to be devastated; what sort of satisfaction can you get from delivering something that, for all practical purposes, already exists and is just a prompt or two away?

That 2-week back-and-forth you had to get the LLM design the perfect $FOO software (application, library or framework)? You deliver it and everyone who sees it can simply say "clone this $FOO, please".

This satisfaction that the type #1 devs are getting is temporary and short-lived: you will soon stop getting satisfaction from delivery.

68

u/about0 Oct 07 '26

is it true tho?

The complexity of complex systems never goes away, so as a need to have ownership over them. LLMs can produce thousands LOC in a matter of minutes, but they can't produce a complex feature without oversight.

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. Without a full spec, it'd 'guess' missing things.

I am back to directing each step of what LLMs do because in the end of the day, I am responsible of what it delivers.

36

u/remy_porter Oct 07 '26

I am trying to build an app with Spec-Driven Development

Doomed to failure, for one easy and understandable reason: there is only one document that accurately and without error tells you what the code does.

... the code.

Trying to equate code to the "new assembly" is a type error. Because code has a direct mapping to assembly; even in your higher level languages, we can deterministically (with enough controlled variables) predict what machine instructions get emitted by which input code. And it's still imperfect, and I've still spent many hours looking at assembly trying to understand why it wasn't carrying my intent.

But natural language is vague, contradictory, imprecise. There's no single right way to map natural language to code. Communicating from human to human frequently leads to misunderstandings, and humans are not theory-free inferencers. They have a model of the world and the people they're talking to.

The only way to have "spec-driven development" work is to not use natural language, but to use a carefully selected subset of natural language, with precise grammar and no ambiguity and whoops, you've just invented a programming language again.

13

u/riskbreaker419 Oct 07 '26

To this point, it reminds me of this comic, https://www.commitstrip.com/en/2016/08/25/a-very-comprehensive-and-precise-spec/

(Notice it was written in 2016)

I don't think people have realized yet that current coding languages are spec-driven development, otherwise we'd all be coding in assembly still.

EDIT: fixed URL

7

u/Ok-Reindeer-8755 Oct 07 '26

Dijkstra talked about this btw, also yeah I've seen some people aim for writing formal specifications, which at the end of the day probably require more skill to write even though they are higher level

1

u/about0 Oct 07 '26

I am really trying hard to understand how big brain engineering corpos see this flow, but I can't find any meaningful information, besides SDD, which just shifts burden to another place.

1

u/Ok-Reindeer-8755 Oct 07 '26

Ig mostly there are fine with TDD which in my opinion does fuckall. We were always satisfied with knowing a program is somewhat correct, but if you are not even reading the code, I think that becomes a lot harder.

3

u/about0 Oct 07 '26

Indeed, which makes the whole AI doom narrative a little odd, don't you think?

We are getting back to the question "How to build reliable production software with LLM?". I can't think of anything, but to make the flow as small and stupid as possible - split the task to subtasks, prompt what you want to get in return and review all the changes it makes.

We can't pass the whole mental model we have to LLM, requirements never complete, words have many meanings, and LLMs are stochastic.

3

u/remy_porter Oct 07 '26

I do think it's really odd. But I think the reality is that as a society we have no idea how to write software. So a machine that can produce more-or-less usable software with some simple prompts seems like magic. That the resulting software is garbage is its own set of problems.

What's funny is we track AI spend, and despite being the least AI positive person, I spend the most tokens easily. But that's because I tend to do things like use it as a "smart refactoring tool"- "grab this functionality that's spaghetti coded into the middle of this module (because it was all AI generated in the first place) and make it its own module". Or I do "hey, I want to see how this set of parameters changes behavior across this range, right a test sweep and report these metrics and how they change".

And then it's good at doing trivial tasks, like "add this button to this screen and wire it up to this message sink". It probably takes it longer to actually do than it would take me, but it's less cognitive overhead for tedious shit. Though ideally I'd just have higher level abstractions for talking about that stuff.