News for hackers. Stuff that matters.
Re:Goodbye, shitty Car extends Vehicle object-orientation tu... by jrochkind1 on Saturday October 19, 2019 @08:15PM (#21301527)
This is good.

I've even seen OO tutorials which make it explicit to give the bad advice that all your objects should match real world _things_.

This does not match my experience of OO programming or what the actual challenges or rewards are:

> We make class hierarchies in order to simplify the code by allowing different parts of it to be changed independently of each other, and to eliminate duplication (which comes to the same thing). Without any context as to what the code needs to accomplish, you can’t make a judgment about whether a particular design decision is good or bad.

YES.

There are no comments on this comment yet.