Dec 5 | 3:55 PM |
Mark M. | has entered the room |
Mark M. | turned on guest access |
Dec 5 | 4:05 PM |
trocchietto_Ivano | has entered the room |
Mark M. |
hello, Ivano!
|
Mark M. |
how can I help you today?
|
trocchietto_Ivano |
Hi Mark, first of all thank you for your "live" suggestion on SO. My today problems are 2, one is a qualitative advice another one regards rxjava2
|
Mark M. |
not sure what suggestion you are referring to, but you're welcome!
|
trocchietto_Ivano |
you referred to stale links
|
trocchietto_Ivano |
i was giving a really small suggestion with a small link
|
trocchietto_Ivano |
because is my strategy to build rep, i start with small and then in few minutes I enlarge the posts
|
trocchietto_Ivano |
anyway I hitted 0,86 per cent one week, I was on the cloud nine. going back to business
|
Dec 5 | 4:10 PM |
trocchietto_Ivano |
the qualitative advice: I am studying python because of some working stuff, do you think that android python could be an interisting niche as skills with this tensor flow thing? ( I know you do not have the magic ball)
|
Mark M. |
I have no idea
|
trocchietto_Ivano |
ok second question
|
trocchietto_Ivano |
I have a Flowable that getPosts from the repository...
|
trocchietto_Ivano |
i have the feeling that does not pass to subscribe...
|
trocchietto_Ivano |
because if I put a log in onNext or I use the debug, just does not work
|
trocchietto_Ivano |
which street should I run to see what's happened? 1) making a junit test 2) using a library 3)other
|
trocchietto_Ivano |
maybe a doOnNext to debug? In other words how can i debug RXjava2?
|
trocchietto_Ivano |
unfortunately to bring the lambda i converted all the thing in kotlin
|
trocchietto_Ivano |
but i used subscribe with the four methods, instead of subscribewith
|
Mark M. |
what is creating the Flowable?
|
Mark M. |
(more specifically than just the repository)
|
trocchietto_Ivano |
is taking alternatively a REST retrofit response, or a Room DB query
|
Dec 5 | 4:15 PM |
trocchietto_Ivano |
both do not work, before with Observable were working really well
|
Mark M. |
why did you switch to Flowable, then?
|
trocchietto_Ivano |
but Room wants Flowable
|
trocchietto_Ivano |
Retrofit likes Observable
|
Mark M. |
Room works with any of the RxJava types
|
trocchietto_Ivano |
Room no because of thebackpressure
|
trocchietto_Ivano |
ah
|
trocchietto_Ivano |
great
|
trocchietto_Ivano |
so I am going to try to see an old repository and work this out in this way
|
trocchietto_Ivano |
thanks
|
trocchietto_Ivano |
have a pleasant afternoon
|
Mark M. | |
Mark M. |
there, I have examples of Flowable, Single, and Maybe
|
trocchietto_Ivano |
ah...
|
trocchietto_Ivano |
did not check your repository sorry
|
trocchietto_Ivano |
I am gonna see how did you subscribe
|
trocchietto_Ivano |
because i think the problem is there
|
Mark M. |
those @Dao methods are mostly used in test code, IIRC, so may not be normal from that standpoint
|
trocchietto_Ivano |
OK
|
Mark M. |
and I don't have an example of Observable itself
|
trocchietto_Ivano |
nice you built also a RecyclerView, really nice
|
trocchietto_Ivano |
yeah because Backpressure is db
|
trocchietto_Ivano |
but is good
|
trocchietto_Ivano |
Looks as a nice example
|
Dec 5 | 4:20 PM |
trocchietto_Ivano |
do you have also repository patterns?
|
Mark M. |
ah, yeah, looks like they don't support Observable -- forgot about that
|
Mark M. | |
trocchietto_Ivano |
hi hi you are not divine
|
Mark M. |
definitely not
|
trocchietto_Ivano |
is good, will work this out with your repository
|
trocchietto_Ivano |
nobody is
|
Mark M. |
with respect to the repository pattern, the most recent book update shows one, though not using Room
|
trocchietto_Ivano |
really good
|
Mark M. |
the next update to that book will have a repository using Room, as part of an extended MVI example
|
trocchietto_Ivano |
god bless martin fowler is a really nice thing
|
trocchietto_Ivano |
Model View Intent????????
|
Mark M. |
yes
|
trocchietto_Ivano |
wow Mark
|
trocchietto_Ivano |
quite a cool architectural stuff
|
trocchietto_Ivano |
really happy you switched to Architecture with your books
|
trocchietto_Ivano |
and regarding the view model
|
trocchietto_Ivano |
do you use only the ViewModel from google architecture or you give hints in general regarding MVVM?
|
Mark M. |
that book shows the "official" ViewModel, plus a way of accomplishing the same ends using a retained object
|
Mark M. |
I do not present MVVM, MVP, MVC, VIPER, etc.
|
trocchietto_Ivano |
mmh
|
trocchietto_Ivano |
retained object looks kind of Moshi stuff
|
Mark M. |
it's possible that I'll compare and contrast those someday
|
trocchietto_Ivano |
nice
|
trocchietto_Ivano |
you are taking over uncle bob
|
trocchietto_Ivano |
if you do also some clean stuff
|
trocchietto_Ivano |
architecture is not scientific
|
Dec 5 | 4:25 PM |
trocchietto_Ivano |
is like food everybody has his taste, even if everybody knows that Italian food is better
|
trocchietto_Ivano |
(trolling)
|
trocchietto_Ivano |
OKIDO Mark
|
trocchietto_Ivano |
thank you very much for your help
|
Mark M. |
you're welcome!
|
trocchietto_Ivano |
I remain on line if some subscriber is going to join
|
trocchietto_Ivano |
(hope not a reactive guy)
|
Mark M. |
OK
|
Dec 5 | 5:00 PM |
Mark M. |
that's a wrap for today's chat
|
Mark M. |
as usual, the transcript will be posted to https://commonsware.com/office-hours/ shortly
|
trocchietto_Ivano |
OK
|
Mark M. |
the next chat is Thursday at 7:30pm US Eastern
|
trocchietto_Ivano |
have a nice afternoon
|
Mark M. |
have a pleasant day/evening/whatever!
|
trocchietto_Ivano | has left the room |
Mark M. | turned off guest access |