Re:How I Learned to Stop Worrying and Love the State Machine
by mehrdadn on Monday February 26, 2018 @05:42PM
(#16469655)
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.
[ Parent
| on HN ]
Re:How I Learned to Stop Worrying and Love the State Machine
by nemothekid on Monday February 26, 2018 @09:20PM
(#16470651)
I read once that the biggest issue with OOP is that everyone gets taught the “Dog inherits Animal” style which is completely worthless.
Re:How I Learned to Stop Worrying and Love the State Machine
by GiorgioG on Monday February 26, 2018 @11:50PM
(#16471142)
One 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.
Re:How I Learned to Stop Worrying and Love the State Machine
by Terr_ on Tuesday February 27, 2018 @12:19AM
(#16471255)
If 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`.