News for hackers. Stuff that matters.
Re:An event bus framework for event driven programming by lnanek2 on Monday July 25, 2016 @01:59PM (#12160361)
Yes, that's pretty full of boilerplate, even for Java, which is notoriously boilerplate.

There are more established event buses in Android with simpler syntax, like greenrobot's: EventBus.getInstance().post(new LogEvent("v1", "v2"));

Seen here: http://greenrobot.org/eventbus/documentation/how-to-get-star...

You can have multiple event buses and other customization there as needed, but you have sensible defaults to keep code small most of the time too.

Square also has one called Otto. If you want a lot of syntax and Java rather than Android, you might as well go full streaming with the RxJava library.

Re:An event bus framework for event driven programming by V-2 on Monday July 25, 2016 @02:06PM (#12160401)
I think Otto is a fork, and simply an enhanced implementation of Guava's built-in EventBus
Re:An event bus framework for event driven programming by ttam on Tuesday July 26, 2016 @09:23PM (#12169914)
meanwhile Otto has become deprecated and the authors suggest going with RxAndroid