3 ms·
This sounds to me more like an argument for composition over inheritance(1) than a rebuke of being clever. That your code is complex to change is a good sign t
by charles_f 3y ago
This sounds to me more like an argument for composition over inheritance(1) than a rebuke of being clever.
That your code is complex to change is a good sign that it's not design in an appropriate way.
Switching from "this code is repetitive" to "therefore I will automate the production of this code" sounds unfortunate though.
1: https://en.m.wikipedia.org/wiki/Composition_over_inheritance https://en.m.wikipedia.org/wiki/Composition_over_inheritance