ivano
11/05/2019, 12:48 PMBoolean
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? *alexsullivan114
11/05/2019, 3:18 PMivano
11/05/2019, 3:22 PMRXClick( button_send).subscribe{
becomes true, so that I can use it into onBackPressed to say finish()alexsullivan114
11/05/2019, 3:23 PMonBackPressed
to see if you should do something or another?ivano
11/05/2019, 3:23 PMalexsullivan114
11/05/2019, 3:24 PMivano
11/05/2019, 3:24 PM