News for hackers. Stuff that matters.
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`.