ICommand and CommandBase - why duplicated in modules #137
-
Hi, First of all, good job, very inspired. I have following question : Isn't better to move it to BuildingBlocks project ? Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi, @radian7. Robert Martin [2] uses a term "accidental duplication" and I guess it's exactly what we have here: contracts looks like duplicates accidentally - they are independent actually.
|
Beta Was this translation helpful? Give feedback.
Hi, @radian7.
I suggests the reason is following. Two of the main attributes of modularity [1] are independence and well-defined interface. ICommand, IQuery are part of a module's interface and they shouldn't be shared to keep and emphasize module's independence.
Robert Martin [2] uses a term "accidental duplication" and I guess it's exactly what we have here: contracts looks like duplicates accidentally - they are independent actually.