3 ms·
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 dupl
by mcv 3y 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.
- raincole 3y agoYes and the original article is about how duplicated code is ok. The discussion finally went the full circle.
- mcv 3y agoThe 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.
- rubicks 3y agoSeconded. 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.
- lanstin 3y agoNo Perl?
- sanderjd 3y agoSure. I consider this a restatement of what I said, and thus inarguably right :)