3 ms·
PropertySale is a thing. It should be modeled. You'll probably want to store some state with it (when the sale happened, to whom, the price, etc etc).
by radicalbyte 14y ago
PropertySale is a thing. It should be modeled. You'll probably want to store some state with it (when the sale happened, to whom, the price, etc etc).
- fauigerzigerk 14y agoYes property sale is a thing. It's a process. Why can that thing not be modelled as a function? Property sales are rather complicated processes so having a class for it could be justified. But OO forces us to do it that way for every tiny operation. It's pure bloat.
- radicalbyte 14y agoIt's bloat, until you realise that you need to persist a lot of information about the "thing". Then you realise that the "thing" isn't actually that little at all. BTW modern OO has constructs which allow a "Verb"-like structure: Generics. You write logic for a certain class of "things", and your compiler makes sure that what you're doing is actually possible.
- deleted 14y ago[deleted]