Office Hours — Today, December 5

Thursday, November 30

Dec 5
3:55 PM
Mark M.
has entered the room
Mark M.
turned on guest access
4:05 PM
trocchietto_Ivano
has entered the room
Mark M.
hello, Ivano!
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
i was giving a really small suggestion with a small link
because is my strategy to build rep, i start with small and then in few minutes I enlarge the posts
anyway I hitted 0,86 per cent one week, I was on the cloud nine. going back to business
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
I have a Flowable that getPosts from the repository...
i have the feeling that does not pass to subscribe...
because if I put a log in onNext or I use the debug, just does not work
which street should I run to see what's happened? 1) making a junit test 2) using a library 3)other
maybe a doOnNext to debug? In other words how can i debug RXjava2?
unfortunately to bring the lambda i converted all the thing in kotlin
but i used subscribe with the four methods, instead of subscribewith
Mark M.
what is creating the Flowable?
(more specifically than just the repository)
trocchietto_Ivano
is taking alternatively a REST retrofit response, or a Room DB query
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
Retrofit likes Observable
Mark M.
Room works with any of the RxJava types
trocchietto_Ivano
Room no because of thebackpressure
ah
great
so I am going to try to see an old repository and work this out in this way
thanks
have a pleasant afternoon
Mark M.
there, I have examples of Flowable, Single, and Maybe
trocchietto_Ivano
ah...
did not check your repository sorry
I am gonna see how did you subscribe
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
yeah because Backpressure is db
but is good
Looks as a nice example
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
trocchietto_Ivano
hi hi you are not divine
Mark M.
definitely not
trocchietto_Ivano
is good, will work this out with your repository
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
Model View Intent????????
Mark M.
yes
trocchietto_Ivano
wow Mark
quite a cool architectural stuff
really happy you switched to Architecture with your books
and regarding the view model
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
I do not present MVVM, MVP, MVC, VIPER, etc.
trocchietto_Ivano
mmh
retained object looks kind of Moshi stuff
Mark M.
it's possible that I'll compare and contrast those someday
trocchietto_Ivano
nice
you are taking over uncle bob
if you do also some clean stuff
architecture is not scientific
4:25 PM
trocchietto_Ivano
is like food everybody has his taste, even if everybody knows that Italian food is better
(trolling)
OKIDO Mark
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
(hope not a reactive guy)
Mark M.
OK
5:00 PM
Mark M.
that's a wrap for today's chat
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

Thursday, November 30

 

Office Hours

People in this transcript

  • Mark Murphy
  • trocchietto_Ivano