<commit_before>---
layout:     post
title:      "EventBus analogy"
date:       2016-03-07 20:00:00
author:     "<NAME>"
summary:	  Loose coupling. Do you want to achieve that?
---

Have you seen any movie, or a real wedding, where the bride tosses the bouquet? She turns her back and tosses it behind her. Is she aiming at someone? No. Does it matter to her, who catches it? Not really. That's an event bus analogy right there!

Loose coupling. When you want to achieve that, go for using event bus. 

EventBus is flexible enough to accomodate any broadcaster consumer pattern. The advantage is that broadcaster does not know nor care who would consume the event.

***EvenBus frameworks for java/android***
* [Otto](https://github.com/square/otto)
* [EventBus](https://github.com/greenrobot/EventBus)<commit_msg>Update 2016-03-07-event-bus-analogy.md<commit_after>---
layout:     post
title:      "EventBus analogy"
date:       2016-03-07 20:00:00
author:     "<NAME>"
summary:	  Loose coupling. Do you want to achieve that?
---

Have you seen any movie, or a real wedding, where the bride tosses the bouquet? She turns her back and tosses it behind her. Is she aiming at someone? No. Does it matter to her, who catches it? Not really. That's an event bus analogy right there!

Loose coupling. When you want to achieve that, go for using event bus. 

EventBus is flexible enough to accomodate any broadcaster consumer pattern. The advantage is that broadcaster does not know nor care who would consume the event.

#### EvenBus frameworks for java/android

* [Otto](https://github.com/square/otto)
* [EventBus](https://github.com/greenrobot/EventBus)
{'fraction_non_alphanumeric': 0.08853850818677987, 'fraction_numerical': 0.021831412977562158, 'mean_word_length': 3.824561403508772, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5201288', 'n_tokens_mistral': 505, 'n_tokens_neox': 463, 'n_words': 222}