News for hackers. Stuff that matters.
Re:Don't Be Clever by mcv on Thursday August 03, 2023 @11:08AM (#36986967)
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.
Re:Don't Be Clever by raincole on Thursday August 03, 2023 @11:38AM (#36987361)
Yes and the original article is about how duplicated code is ok. The discussion finally went the full circle.
Re:Don't Be Clever by mcv on Thursday August 03, 2023 @12:55PM (#36988446)
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.
Re:Don't Be Clever by rubicks on Thursday August 03, 2023 @05:08PM (#36991954)
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.
Re:Don't Be Clever by lanstin on Thursday August 03, 2023 @07:00PM (#36993260)
No Perl?
Re:Don't Be Clever by sanderjd on Thursday August 03, 2023 @09:10PM (#36994186)
Sure. I consider this a restatement of what I said, and thus inarguably right :)