(no title)
closed | 2 years ago
You often get a ton of methods / attributes on the child class, which gets hard to keep tabs on. You have to be careful not to use the same names for things. (The worst is that someone uses this broken encapsulation and relies on things across parent classes via the child).
I get that inheritance can go okay for simple cases, but have seen enough chaotic uses of it that I'd just encourage people to write the boilerplate for forwarding methods.
lostdog|2 years ago
Inheritance turns the functional structure of your code into mud. Unless inheritance is absolutely the best design, better to drop it.
adr1an|2 years ago