Developer Aspirations

YAPB - Yet Another Programming Blog

EventBus

Wednesday

13

January 2016

Don't Use an EventBus on Mobile

by Colin Miller, on Android, development, EventBus

A practice that I've noticed infecting some mobile developers is attempting to use an EventBus in replacement of method calls. The idea being to introduce high levels of decoupling where publishers of events need to never know who will be consuming them, and for consumers to not require knowledge of the producers. While this sounds great in theory, in practice it can suffer from overly engineered and complicated code that…