https://kotlinlang.org logo
Title
d

dvlwj

12/13/2018, 2:23 AM
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

Happy

12/13/2018, 5:57 AM
I Had implemented simple Mvvm to teach my friend
I can share with you bitbucket link
j

Jorge R

12/13/2018, 8:19 AM
If you are using Kotlin, I would skip Rx
Also Koin is working fine and for me works better than Dagger
d

dvlwj

12/13/2018, 9:18 AM
@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

Jorge R

12/13/2018, 9:20 AM
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

MrNiamh

12/13/2018, 9:58 AM
Check out https://codelabs.developers.google.com/codelabs/android-room-with-a-view-kotlin/ - Although it's about room, still contains architecture examples
d

dvlwj

12/13/2018, 10:04 AM
@Jorge R thanks for advice, gonna note it @MrNiamh thanks, i gonna try to read it 🙂 @Happy waiting for your 😄
👍 1
j

Jorge R

12/13/2018, 10:50 AM
@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

Happy

12/13/2018, 10:51 AM
Hmmm I Am also beginner will improve it . 😀😀
j

Jorge R

12/13/2018, 11:43 AM
hahaha oki, so we can try to implement something
d

dvlwj

12/14/2018, 2:42 AM
@Happy interesting but im hard to get what is that, maybe i need to read it more carefully.
j

Jorge R

12/14/2018, 8:11 AM
what is the thread switch?