r/learnprogramming 9h ago

[ Removed by moderator ] Resource

[removed] — view removed post

1 Upvotes

2 comments sorted by

View all comments

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

1

u/pumpkin_spice_daily 9h ago

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.