in reply to Re: Hierarchy of code reuse by flexibility
in thread Hierarchy of code reuse by flexibility

I absolutely agree that code generation bears a lot of risks. Particularly in a language like Perl that is not well designed for it.

However I emphatically disagree about the potential returns. I suggested in the past that you read On Lisp, and I'm going to repeat it for the demonstrations of how powerful code generation can be. That said, code generation is a sledgehammer that should be swung carefully and precisely, if at all. (Personally at the moment I do lots of code generation of SQL, but none of Perl.)

  • Comment on Re^2: Hierarchy of code reuse by flexibility

Replies are listed 'Best First'.
Re^3: Hierarchy of code reuse by flexibility
by TGI (Parson) on Feb 17, 2009 at 19:11 UTC

    I resort to code generation only when manually produced code will be (and often already has proven to be) harder to maintain and extend.


    TGI says moo