New answers tagged

0 votes

How to model 1 to many relationships in DDD (Domain Driven Design)

In your specific use case, I would add a property called memberCount to Organization aggregate and use it to validate if you have at least one member in the organization when adding and removing them. ...
user avatar
1 vote

Modules Design and Communication Between Them

I'd like to add some more general thoughts to Irfan's excellent answer. Modules are not meant to be completely independent. Modules are meant to isolate related parts of the code, and define clear ...
user avatar
  • 68.8k
3 votes

Modules Design and Communication Between Them

Replication is redundancy. It won't be a good idea, neither good practice. You would have to make modifications in multiple places in case of a requirement change. User and User types are related, ...
user avatar
1 vote

Does this code have only one level of abstraction?

Based on the names of the functions I believe the functions drawBoard(); verifyWinner(); changePlayer(); are already at a different abstraction layer than tryToMakeAMove() which seems like a much ...
user avatar

Top 50 recent answers are included