News for hackers. Stuff that matters.
Re:Data-oriented design or why you might shoot yourself in t... by vlunkr on Monday June 28, 2021 @05:30PM (#27668421)
I think that it can work. IMO ActiveRecord is a perfect use of inheritance. You get tons of useful functionality out of the box, you don't have to worry about what that code looks like, and it's easy to extend or modify it. But often when I see co-workers come up with their own hierarchies, it saves maybe a couple of lines of code and makes it 5x more difficult to read, since you're jumping between parent and child classes and trying to keep track of the order of execution.

There are no comments on this comment yet.