the definition of MVVM still doesn't make sense to me. seems like it has many definitions. what's your fave definition of it?
orbit mvi 2
a
Adel Ayman
12/15/2022, 11:16 PM
Hi @Colton Idle , your problem is “what is mvvm”?
Or why use mvvm and why it better than mvc or mvp etc..
Please be more detailed
a
andylamax
12/16/2022, 7:20 AM
My own sane definition of MVVM is as follows
It has a
ViewModel
class which must expose observable objects to be subscribed to the UI for state updates
The Presenter (in MVP) and the Controller (in MVC) do not have values that can be subscribed to
MVI is a step further to MVVM, with the addition of having reducers (which are just functions that map the current state and an intent into a new state that is also posted to the observable)
c
Colton Idle
12/16/2022, 4:06 PM
ooh. i like this. I think this is what @kenkyee was guiding me to 💪
k
kenkyee
12/16/2022, 4:08 PM
yep...fair assessment except MVI is also single state object.
MVVM is generally reactive vs. callbacks