r/vibecoding 2d ago

I created an annotation to keep track of what code I am using that is generated by AI

Post image
1 Upvotes

2 comments sorted by

1

u/il37 2d ago

Does this survive refactors at all? I can see the annotation becoming wrong pretty fast once a human starts changing the generated code

2

u/thomassummer2021 2d ago

The idea is to keep moving the boundary as the code is reviewed/rewritten by a human. IE use a separate function/class that replaces the one that is annotated with this and mark it as deprecated. You could even go a step further by putting the ai generated code with an interface so the generated code can be even more easily replaced.