--
You received this message because you are subscribed to the Google Groups "object-composition" group.
To unsubscribe from this group and stop receiving emails from it, send an email to object-composit...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/object-composition/d8b9b7f4-ed14-4e53-8008-5a5d4813a92cn%40googlegroups.com.
I guess this should have been a new SubContext instead?
Probably yes... LogisticsService sounds like a context to me. The
question to ask for contexts is (at least in traditional DCI),
what use case is it fulfilling? If the use case is "Check Seats
Availability", then maybe that should be the name of the context
instead of LogisticsService. And if LogisticsService is also doing
other things that belong to other use cases, then you might need
to separate it into multiple contexts.
But this is all conjecture at this point...the use case design
should inform the code rather than the other way around. Depending
on what checkSeatsAvailability is doing and where else it's
needed, maybe all of that logic could just go in your main context
for booking a ticket, as long as it's organized into roles.
To view this discussion on the web visit https://groups.google.com/d/msgid/object-composition/99f60f37-6d43-45d7-8933-b18a000e440en%40googlegroups.com.
On 2 May 2024, at 18.04, Matthew Browne <mbro...@gmail.com> wrote:Probably yes... LogisticsService sounds like a context to me.