3 ms·
Say what you want about EventBus but at least it's simple, non-intrusive and straightforward. You annotate your listener method, register your listener, post an
by ncann 5y ago
Say what you want about EventBus but at least it's simple, non-intrusive and straightforward. You annotate your listener method, register your listener, post an event and boom done. In contrast I've heard war stories about RxJava, it's complex with a high learning curve, it's intrusive and spreads like cancer in the codebase, and overall much harder to debug. The downsides honestly cancel out any benefits it may have.
- billjings 5y agoIf you are working in a shop that considers EventBus a best practice, my advice to you is to level up your peers if you can, or investigate and advocate for new and better architectural tools like coroutines if you cannot. I expect that you will not be able to successfully make the case to migrate off of EventBus, because it will be difficult to restore the dependency tree and extricate it from the codebase.