Hard disagree. Your only alternatives are:

- A centralized service locator, that stops being feasible as soon as you have multiple context layers (like in games: root context, scene context, game mode context, world object context, individual contexts for different UI sections),

- Classes constructing their own dependencies, making them non-testable and creating long chains of constructor argument passing.

Reply to this note

Please Login to reply.

Discussion

No replies yet.