3 ms·
I don't think I would trust any system that focuses purely on modelling the real world.
by lightbendover 3y ago
I don't think I would trust any system that focuses purely on modelling the real world.
- hinkley 3y agoWe often have to model legal constructs. Short of working for organized crime there is really no way around it.
- TeMPOraL 3y agoThe thing they don't tell you - or at least didn't tell me - at school is that the "real world" isn't... the real world. Your Cow and Car objects aren't supposed to be modeled after the real thing. The terms "cow" and "car" as you understand them aren't the real thing either. They are labels, part of some classifications, some taxonomy. Those are all human conceptual constructs, with their own synthetic rules that may or may not have some predictive power about the real world. In this sense, I'd say legal construct are much better representation of what we're modelling with OOP, because the law is obviously a human-invented game with human-invented rules. Cows and cars? They're that too, but it's not obvious.