3 ms·
> It does introduce a direct dependency where it was indirect before Which is okay if you've used any amount of DI and testability-focused thinking to set up y
by void_mint 5y ago
> It does introduce a direct dependency where it was indirect before
Which is okay if you've used any amount of DI and testability-focused thinking to set up your code.
The event bus pattern works great if you don't know (or want to know) what's going to happen to an event once it's emitted. If the only thing that happens is a different method in your app gets triggered, you should really just trigger that method and skip the event bus altogether.