3 ms·
I think the problem isn’t code generation, it is having to edit the generated code. So, you write source S from which you generate T, which you edit into U. W
by Someone 7y ago
I think the problem isn’t code generation, it is having to edit the generated code.
So, you write source S from which you generate T, which you edit into U.
When you have to change S to S’, which generates T’, you have to do a merge to get U’.
For example, the C preprocessor is fine, as long as you don’t start editing its output.
Similarly, Java annotations that generate code are fine in this respect.
- ak39 7y agoAgreed. Isn’t that what most of the framework based IDEs do for you? Look at .net Web mvc or rest api application for example - code generated from wizard after wizard. And then the developer massages the rest.