3 ms·
If you are doing subclasses you are doing OOP wrong.
by tasubotadas 3y ago
If you are doing subclasses you are doing OOP wrong.
- ovis 3y agoDo you consider implementing an interface to be subclassing? And if so, what's the OO alternative? Prototypes?
- tasubotadas 3y agoInterfaces are fine. Anything that works like traits :)
- munificent 3y agoTIL that I've been doing OOP wrong for the past twenty years.
- tasubotadas 3y agonp. https://pragprog.com/titles/tpp20/the-pragmatic-programmer-20th-anniversary-edition/ https://pragprog.com/titles/tpp20/the-pragmatic-programmer-2... https://media.pragprog.com/titles/tpp20/inheritance-tax.pdf https://media.pragprog.com/titles/tpp20/inheritance-tax.pdf
- munificent 3y agoYes, I read it the year it came out. :)