r/ChatGPTCoding • u/gamagamer • 4d ago
Discussion Regenerative software approach
I came across [this blog](https://turri.dev/blog/why-i-built-turri/) where the author explains how they lost the knowledge of their own software while using coding agents. Their answer was apparently regenerative software, where the idea is to keep the intent as the source of truth so the code can always be regenerated. I'm a bit sceptical about how this would scale on larger projects, and there have been several attempts at this in the past - spec driven development, UML etc.
It feels to me like we are entering a new layer of abstraction, ie. similar to how we went from machine code to higher level programming languages, and I think there will initially be the same kind of push back - "The code it spits out will be way slower than mine.", "How do I debug code I didn't write?", "Every machine is different anyway, so why bother being general?" etc.
What's your take on this?
7
u/wangadong 4d ago
Regenerative only works if the intent file is the real source of truth. Mine lives in Markdown in git, code gets regenerated from it. If the intent rots, the regen rots with it.
4
u/olejorgenb 4d ago
https://chadfowler.com/regenerative-software/
3
u/Low-Bad7547 4d ago
Works, but you have to specify every thing that you want to be guaranteed
4
u/Top_Dust7210 1d ago
Interesting concept, hard to trust yet.
1
u/codeprimate 3d ago
Are we rediscovering waterfall again?
Seriously, for the past year I've been doing a combination of waterfall and agile. Spec and plan the feature/project first. Revise and update spec/plan docs (and architecture/design/ADR's/changelog) during development as assumptions are validated or disproven.
Document/test/code. Without one, the others provide the truth.
Code is a build artifact.
1
u/Raul_Nogales 6h ago
The intent file only stays true if updating it is part of the same change as the code. We learned a smaller version of that with specs kept as text. When the written form could lag behind, it did, and within weeks nobody trusted it enough to build from it. The deletion test sounds harsh, but it is the honest one. If the intent cannot rebuild the thing, it is documentation, not a source.
3
u/Entire-Respond6809 4d ago
If only there was a way to specify any program operation in a clear and unambious manner...
2
u/Old_AI_Guy_ 4d ago
I just completed an extensive design and architecture review with Fable, of an ongoing project. I start with stating my intent, then the current planning, architecture, and team structure, then issues or new features, with my input on handling these. Fable gathers information from documents and other agents, presents it's plan, which I review, correct, and then have it work out with the various team-lead agents the implementation plan.
I give the team lead authority to decide how and when work gets done, and whether it thinks the work is appropriate for its team. It writes plan updates. Fable, running the review, has final say on whether the plan changes faithfully implement my intent, as well as Fable's intent. IF there is a final disagreement on that, the team lead wins, but Fable brings it to me separately to make a determination.
Seeing the dialog between them was interesting, and in the end, and disagreement the team leads had with Fable's design was settled agreeably without me.
1
u/dusanodalovic 3d ago
the compiler comparison breaks on one thing, a compiler gives you the same binary every time and an agent doesn't. regenerate twice from the same intent and you get two different programs that both look right. so imo the tests are what you actually have to keep stable, more than the intent file. on the debug question, i don't read most of what my agent writes anyway, i go by tests, a plan first and a second model grading the result.