News for hackers. Stuff that matters.
Re:Goodbye, shitty "Car extends Vehicle" object-orientation ... by Emore on Monday August 22, 2011 @10:43PM (#2915114)
Yes, a thousand times yes. I have never understood why dependency injection is not taught in OOP courses -- as described in the article, DI truly shows why OOP design is useful. Conversely, the "domain model"-approach commonly used probably gains some of its attraction due to the similarities to E/R database diagrams, but far from always lead to designs which are actually useful in practice.

There are no comments on this comment yet.