Hacker News new | ask | show | jobs
by WesolyKubeczek 1053 days ago
The problem OP describes (multiple classes like that other class, but with a twist each) is a textbook use case for inheritance, but after decades of prominent programmers indoctrinating „inheritance bad”, I can see why he would not consider it at all.
1 comments

Thanks for all the downvotes, they prove my point brilliantly.