News for hackers. Stuff that matters.
Re:Cog: Use pieces of Python code as generators in your sour... by phodge on Wednesday April 03, 2019 @06:43PM (#19567844)
I built something like this in ~2006 called "PHPinPHP" because I wanted to generate PHP classes from my mysql schema. It even used "[[[...]]]" blocks like cog does.

I eventually realized that A) generated code is completely unmaintainable; and B) the reason I thought I needed code generation is because my base language wasn't flexible enough.

Later on I switched to python and haven't yet hit a problem that I need code generation to solve.

There are no comments on this comment yet.