https://kotlinlang.org logo
r

rkeazor

05/28/2020, 4:52 PM
In traditional MVVM, what do you guys consider your model(ie your networking layer) ?
h

henrikhorbovyi

05/28/2020, 5:04 PM
I consider everything after domain (inclusive)
o

OG

05/29/2020, 3:45 AM
To be specific, I consider my repository/useCase class and everything it encapsulates (ie DAO, webservices/networking etc)
👍🏻 1
☝️ 1
k

KayCee

05/31/2020, 5:30 AM
what is traditional MVVM, is it MVVM without clean architecture, D.I?
r

rkeazor

05/31/2020, 7:08 AM
Without clean architecture. im guessing.
DI is fine
clean architecture is a architecture of its own
k

KayCee

05/31/2020, 9:27 AM
so in some cases, or some projects, we just need traditional MVVM?
r

rkeazor

05/31/2020, 3:21 PM
I think MVVM, doesn't need clean architecture to be honest. The usecase model is cool and all , but its not needed to accomplish mvvm
DI. is just a good coding design principal to have regardless of the architecture
a

Andrew

06/02/2020, 8:02 PM
In MVVM the model is everything that isn't the UI, bit different definition than what most things mean when they say model
3 Views