btw did anyone have a legit MVVM tutorial/page/art...
# getting-started
d
btw did anyone have a legit MVVM tutorial/page/article/whatever for newbie? i am trying it, but i think i am missing something, and well, i doesn't found one that is legit for newbie, most of them using RXthis RXthat, Dagger, etc which is i never use before. 😞
πŸ‘ 1
h
I Had implemented simple Mvvm to teach my friend
I can share with you bitbucket link
j
If you are using Kotlin, I would skip Rx
Also Koin is working fine and for me works better than Dagger
d
@Happy sure, any help is really help me πŸ™‚ @Jorge R and i doesn't understand them too, its why, and im doesn't understand how and where to start if i just remove the Rx etc from the article πŸ˜„
j
from mvvm it is a bit more difficult to find where to do the context switch from UI to background
at least to me
I would recommend you first to get used to the architecture
and read about where to make the context change
once you get to know that, then you can start designing your base architecture
if your app will be based in a lot of streams (so you would be pulling items from server in a stream way), then Rx would be ok, if you wont (90% of cases) then it will add more complexity to your code + coupling it with Rx library
m
Check out https://codelabs.developers.google.com/codelabs/android-room-with-a-view-kotlin/ - Although it's about room, still contains architecture examples
d
@Jorge R thanks for advice, gonna note it @MrNiamh thanks, i gonna try to read it πŸ™‚ @Happy waiting for your πŸ˜„
πŸ‘ 1
j
@Happy activity being the presenter?
I guess the context/thread switch is not implemented?
sorry, im really interested in a proper way to implement MVVM as well πŸ˜„
πŸ‘ 1
h
Hmmm I Am also beginner will improve it . πŸ˜€πŸ˜€
j
hahaha oki, so we can try to implement something
d
@Happy interesting but im hard to get what is that, maybe i need to read it more carefully.
j
what is the thread switch?