5 ms·
Links to any existing articles on this topic would be greatly appreciated.
by Kinrany 2y ago
Links to any existing articles on this topic would be greatly appreciated.
- valenterry 2y agoThis is the original article from Fowler: https://martinfowler.com/bliki/AnemicDomainModel.html https://martinfowler.com/bliki/AnemicDomainModel.html By searching for that term, you'll easily find lots of other takes on the matter.
- Kinrany 2y ago> I'll reply here with a very quick example why the anemic domain model is superior in general, no matter if you do OOP or anything else. I can search for it of course but results that aren't about OOP purism appear to be rare.
- mrkeen 2y agoI highly recommend a video if you don't mind the format: https://youtu.be/zHiWqnTWsn4?t=3134 https://youtu.be/zHiWqnTWsn4?t=3134 The slide at 52:14 is on the SOLID principles, the first one is on SRP which gives pretty understandable advice about whether Order should have behaviours.