News for hackers. Stuff that matters.
Re:Writing code that writes code – Hack Codegen by Ologn on Thursday August 20, 2015 @07:02PM (#10095122)
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.

Re:Writing code that writes code – Hack Codegen by ArkyBeagle on Thursday August 20, 2015 @11:08PM (#10095790)
There'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.