Hacker News new | ask | show | jobs
by mcv 1053 days ago
Generated code is fine if it's newly generated on every build. If you're going to have to maintain the generated code, it's not generated code anymore, but duplicated code.
3 comments

Sure. I consider this a restatement of what I said, and thus inarguably right :)
Seconded. How many in this thread have found generated code in source control? My trophy case includes artifacts produced by: flex, bison, gperf, swig, and one particularly nasty CORBA stub generator.
No Perl?
Yes and the original article is about how duplicated code is ok. The discussion finally went the full circle.
The original article isn't very convincing though. I mean, I fully believe the single abstract super controller was a bad idea, but there are far better options than that and duplicate code. He's just comparing two of the worst ways to do it.