3 ms·
Holy cow, these blog posts are everything I've been trying to say about OOP but never been able to put into succinct examples and explain clearly... and then so
by mehrdadn 9y ago
Holy cow, these blog posts are everything I've been trying to say about OOP but never been able to put into succinct examples and explain clearly... and then some more. Thanks so much for sharing this (and to him for writing). Now I can finally point people somewhere instead of just getting a blank stare back when I tell them OOP is hard.
- nemothekid 9y agoI read once that the biggest issue with OOP is that everyone gets taught the “Dog inherits Animal” style which is completely worthless.
- GiorgioG 9y agoOne of the biggest issues with OOP is that it’s hard ;) I gave up attempting to get good at it after trying to read Bertrand Meyers’ Object-Oriented Software Construction book. If I need to be able to keep 1300 pages worth of info in my head to write well designed software, maybe it’s the wrong approach.
- Terr_ 9y agoIf I had my druthers, I'd put the teaching-ratio of interfaces versus inheritance at like 95%/5%. Treat concrete inheritance primarily as a useful work-saving shortcut. Basically, I'm one of those people who might unironically write `class DefaultDog implements Dog extends AbstractAnimal`.