Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • Perfect, so besides this notion coming from an OO foundation, in the real world we will see this approach being more prominent being applied to DDD models, right? Commented Jul 1, 2021 at 13:29
  • I'm sorry - I'm having trouble understanding this question. If you're asking do I think this principle is applied more to DDD models than elsewhere? Not often enough to make a practical difference: Sturgeon's Law. Commented Jul 2, 2021 at 12:41
  • 1
    @VoiceOfUnreason A fair answer. One point however: Avoiding getters is not "more complicated". It is the same thing. If you have behavior there is no need to access "data". You don't "get information out of the model", you tell it what to do. That is the whole point. Commented Jul 7, 2021 at 20:47