3 ms·
Also, codegen exists on a solution continuum. Codegen is a superior solution to manually pumping out lots of boilerplate code with slight variations. A solutio
by Ologn 11y ago
Also, codegen exists on a solution continuum. Codegen is a superior solution to manually pumping out lots of boilerplate code with slight variations.
A solution that does not need lots of boilerplate code would be even better, but codegen is still better than the makeshift code that it originally replaced.
- ArkyBeagle 11y agoThere's an intermediate approach - use a generator to spew out tables of data that an engine-type thing uses to adapt to boilerplate style variations. This is totally a 'C' hacker's approach but it's not bad for some things - especially serialization and the like. But it will need some generic reference mechanism - as void * is used in 'C' - to work.