Skip to main content
3 events
when toggle format what by license comment
May 14, 2021 at 10:44 comment added Gerard Bosch When data (I mean domain models) and functions that operate upon that data (like raiseSalary() are decoupled, where should those functions be placed so they keep organized, modular and discoverable? I'm thinking in Java/Kotlin/Scala, but also interested on how to organize it in Haskell. Should it be extension methods in a companion object? Thx!
Mar 20, 2020 at 14:08 comment added Mic On the isssue of violating SRP in the DDD context, You can still try to inject some services into domain entity - basing on Your example, those calculating salary or bonus.
May 31, 2016 at 8:14 history answered la-yumba CC BY-SA 3.0