Hacker News new | ask | show | jobs
by charles_f 1053 days 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