
24 Aug
2010
24 Aug
'10
6:54 p.m.
Quoth "Richard O'Keefe"
Of course code generation is perfectly fine when the output is not intended to be read and maintained by a human.
"Read" and "maintained" are two different issues. Depending on the tool-chain, it may be necessary for people to read the generated code while debugging.
Indeed, for my modest purposes it has been easy enough to generate code in a conventional, readable format - and honestly it's better self-documentation than the code I write directly. The mechanical consistency of generated code makes it especially transparent. Donn Cave, donn@avvanta.com