Richard Bucker

Code generator workflow

Posted at — Oct 11, 2013

When working with code generators the hardest question to answer is whether or not the generated code should be stored in your version control system during the development cycle instead of the build cycle?I don’t have a very good answer for this question because when one considers continuous integration the answer is further complicated. Answer the comes to mind first or maybe second is that the code that is being generated should be in a separate project from the code generator. However, when there is a recursive relationship between the cogenerator the library the code generator uses in the generated code then it gets more complicated when trying to decide where the generated code resides.Maybe I’ll answer this next time. But your comments are welcome.