Re:Writing code that writes code – Hack Codegen
by zeroonetwothree on Thursday August 20, 2015 @09:37PM
(#10095533)
Each codegen is run multiple times. Imagine you want to generate 100 similar classes with similar code except for a small difference.
[ Parent
| on HN ]
Re:Writing code that writes code – Hack Codegen
by epaga on Friday August 21, 2015 @02:41AM
(#10096246)
But that would be a code smell akin to copy-pasting code wouldn't it?
I'm having trouble seeing any real-world scenarios for this kind of codegen but since it seems to be in wide use at Facebook, I must just be missing something...