I am busy in a project where the architect said that we have not to use
Boolean
as Flag in the viewModel, but
Observable<Boolean>
and so on for everything because he claims that imperative and functional paradigms should not be used togheter. So I am in a situation where if I want to control a simple true false, have to make a
PublishSubject
, start it with a value, and then bind it, while I think would be much more efficient to do a simple Boolean
viewModel.isSomethingTrue
. Kotlin is not AFAIK a reactive functional language as clojure for instance, so I guess under the hood everytime I use RXJAVA I am going to build a lot on top of an Observable pattern a Boolean anyway! * Is reasonable and more performance effective to combine RXJAVA with ’Imperative” as I think, or I should bind evey single thing and make my Activity classess much more verbose as the architect is saying? *