r/ChatGPTCoding • u/gamagamer • 13d 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 13d 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 13d ago
https://chadfowler.com/regenerative-software/
3
u/Low-Bad7547 13d ago
Works, but you have to specify every thing that you want to be guaranteed
2
u/codeprimate 12d 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.
5
u/Entire-Respond6809 13d ago
If only there was a way to specify any program operation in a clear and unambious manner...
4
u/Top_Dust7210 10d ago
Interesting concept, hard to trust yet.
2
u/Old_AI_Guy_ 12d 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.
2
u/dusanodalovic 12d 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.
1
u/damagemelody 8d ago
I'm not sure that giving up on understanding the implementation is a solution to the problem of not understanding the implementation
0
u/[deleted] 9d ago
[removed] β view removed comment