How do you think about when the linkage between two concepts deserves its own concept, vs just being part of those concepts?
For example, consider an online food ordering app.
Dish
is a concept.Order
is a concept, containing say aCustomer
and a list ofDish
es.
But the dish-related informationOrder
is actually not just a list ofDish
es. Each line item in the order might also have a quantity (e.g. 3x Fried Rice), amendments (hold the onion), etc.
So does something likeOrderLineItem
deserve its own concept? This would seem to violate the idea that concepts should be independent, sinceOrderLineItem
doesn’t really make sense on its own outside the context of anOrder
.
What patterns have you seen work well here?