|
|
|
|
|
by IceDane
340 days ago
|
|
Want to elaborate on how you're going to magically disappear the inherent polymorphism in your problem domain every time? Sometimes you can indeed view things from a different perspective and come up with a simpler data model, but sometimes you just can't. |
|
The process for handling the two cases is distinct. This is the classic OOP issue of trying to use a Shape object to represent both Box and Sphere. Just don’t. Stick with transaction/linear code and use transforms as it makes sense for certain cases (ie, MVVM style). Handle the two cases distinctly so there is no room for ambiguity.
People get this confused and they think it can’t be simpler.