halu5071 / git-push-hackathon

$ git push hackathon :computer:
https://www.cyberagent.co.jp/
1 stars 0 forks source link

[Determined] UseCase&Presenter vs ViewModel #56

Open halu5071 opened 6 years ago

halu5071 commented 6 years ago

Overview

When I adopt Clean-Architecture, I would have used UseCase to operate Repository. However, after I learned MVVM (and Architecture Component, DataBinding), UseCase classes are redundant I think.

hmmm

TBD

halu5071 commented 6 years ago

A project I belong may adopt Clean-Architecture + MVVM, then both ViewModel and UseCase will be implemented.

halu5071 commented 6 years ago

I will implement only ViewModel, and ViewModel use Repository like Google Architecture Components sample.

However, when ViewModel has some roles, UseCase classes is useful I think.