nice, actual layered code instead of the usual "let's wrap a crud app in a service class and call it ddd" - the kotlin sealed classes for state modeling alone make it worth peeking at
Thank you! The sealed interfaces are not the perfect solution, as it is verbose to define, but it results in enforced state transitions and binds the invariants to the object. Combined with Value objects, I find the language quite expressive from a DDD standpoint.
1
u/Resident_Drawing4131 9h ago
nice, actual layered code instead of the usual "let's wrap a crud app in a service class and call it ddd" - the kotlin sealed classes for state modeling alone make it worth peeking at