Month: October 2018

BehaviorSubject vs LiveData

LiveData and BehaviorSubject both have reactive capabilities, namely When that item changes notify all active subscribers and keep doing the same for future changes. LiveData’s observers always receive events on the main thread, BehaviorSubject not necessarily do that but can be fixed by¬†subject.observeOn(AndroidSchedulers.mainThread()). What is the main difference? Let’s...

Git Hook – Commit message

Within my company there is a rule to always make sure you have the story number of Jira in the commit message. I forgot to do this so many times… and it’s a tedious job to do every single time. Surely there must be a automatic way to do...