Someone told me that my domain model is actually the SpriteModel
class now and not the Sprite
class itself. I'm obviously confused about what to call these things exactly, and any clarification would be appreciated.
Someone told me that my domain model is actually the SpriteModel
class now and not the Sprite
class itself. I'm obviously confused about what to call these things exactly, and any clarification would be appreciated.
How should I implement my Implementing a domain model?
Someone told me that my domain model is actually the SpriteModelSpriteModel
class now and not the SpriteSprite
class itself. I'm obviously confused about what to call these things exactly, and any clarification would be appreciated.
But my main question is: which of these approaches is better and why? Are they both terrible? And in that case is there another approach that I should use instead? If I go with the second approach, then I could have SpriteModelSpriteModel
implement ISpriteModelISpriteModel
, and the classes that use it could be more loosely coupled, which is a nice side benefit I think. But I don't want to go that route just for a side benefit that might not actually pay off (and could just add more complexity).
How should I implement my domain model?
Someone told me that my domain model is actually the SpriteModel class now and not the Sprite class itself. I'm obviously confused about what to call these things exactly, and any clarification would be appreciated.
But my main question is: which of these approaches is better and why? Are they both terrible? And in that case is there another approach that I should use instead? If I go with the second approach, then I could have SpriteModel implement ISpriteModel, and the classes that use it could be more loosely coupled, which is a nice side benefit I think. But I don't want to go that route just for a side benefit that might not actually pay off (and could just add more complexity).
Implementing a domain model
Someone told me that my domain model is actually the SpriteModel
class now and not the Sprite
class itself. I'm obviously confused about what to call these things exactly, and any clarification would be appreciated.
But my main question is: which of these approaches is better and why? Are they both terrible? And in that case is there another approach that I should use instead? If I go with the second approach, then I could have SpriteModel
implement ISpriteModel
, and the classes that use it could be more loosely coupled, which is a nice side benefit I think. But I don't want to go that route just for a side benefit that might not actually pay off (and could just add more complexity).
- 13k
- 1
- 35
- 76
My domain model consists mostly of simple DTOs, i.e. 'Data Transfer Objects' which this article distinguishes from 'Plain Old C# Objects' , like this one:
My domain model consists mostly of simple DTOs, like this one:
My domain model consists mostly of simple DTOs, i.e. 'Data Transfer Objects' which this article distinguishes from 'Plain Old C# Objects' , like this one: