Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incremental Generation #30

Open
pinkforest opened this issue Oct 28, 2022 · 1 comment
Open

Incremental Generation #30

pinkforest opened this issue Oct 28, 2022 · 1 comment

Comments

@pinkforest
Copy link

It would be great to be able to incrementally generate from spec on top of existing scaffold

Difficulty is keeping track of "scaffolded bits" and then patch them

One way to do it is to separate them and use derives at least in Rust side

@gedw99
Copy link

gedw99 commented Sep 6, 2023

I have tackled this before for a large enterprise team .

the problem is that you have generated code mixed with human code .

the trick was to generate tags that the generator respects for where human generated code should go.

then humans put their code in

then on next generation cycle the human code is left alone.

my der the hood it’s basically a merge …

the first gen cycle can then generate a working app too and then human in the loop can make changes .

If you want help just shout :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants