5 ms·
Eric Lippert, one of the designers of C# language, wrote a series of articles about object oriented design problems. Here's the first article in the series: ht
by DeathArrow 2y ago
Eric Lippert, one of the designers of C# language, wrote a series of articles about object oriented design problems.
Here's the first article in the series: https://ericlippert.com/2015/04/27/wizards-and-warriors-part-one/ https://ericlippert.com/2015/04/27/wizards-and-warriors-part...
- n_plus_1_acc 2y agoI consider the point of this article moot. The Problem with generics is easily solved in languages with associated types like Rust and scala.
- brewmarche 2y agoLove this series. In OOP always ask what should be the object when modelling the domain: often it's not an object like dog or cat but something like a rule or relation, to use the same example it could be a PlayRule (is this dog allowed to play with this cat, do they get along?), or whatever your problem demands (it's also interesting to observe that the terms dogs and cats are pretty vague, we could be talking about software for a vet or a shelter or a taxonomist, once you talk about the relation it seems to become more specific)