Common Design Patterns and App Architectures for Android |

Discover how to make your Android code cleaner and easier to understand with these common design patterns for Android apps. “Future You” will appreciate it!

This is a companion discussion topic for the original entry at

Even without using SaladDecorator we can achieve the same functionality just in constructor of Carrot and Cucumber classes we need to add “private var” or similar modifiers. Can you explain why there is a need of SaladDecorator here?

Thanks for the article.
I have one question. Is the Greenbot’s event bus really based on the Command pattern?
The official site states the following: " EventBus is an open-source library for Android and Java using the publisher/subscriber pattern for loose coupling". Could you clarify?