Re:Ribosome – A simple generic code generation tool
by dragonwriter on Friday June 18, 2021 @04:08AM
(#27548369)
> Also IMHO code generation should be a last-resort anti-pattern; after all that’s what you (the programmer with a brain) are for.
What I am for, as a programmer, is writing code to automate tasks that are determined by some input tasks to allow humans with brains to focus on things that need to thought.
To the extent some part of coding is such a determined task, automating it with code generation makes sense. Though there tends to be a lot of overlap between what is addressable by code generation and what is addressable by reusable libraries, and in most cases if both solve the same problem, I’d prefer a library to a generation template.
What I am for, as a programmer, is writing code to automate tasks that are determined by some input tasks to allow humans with brains to focus on things that need to thought.
To the extent some part of coding is such a determined task, automating it with code generation makes sense. Though there tends to be a lot of overlap between what is addressable by code generation and what is addressable by reusable libraries, and in most cases if both solve the same problem, I’d prefer a library to a generation template.