Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Where is the MVP's model in the presentation layer? #286

Open
zhenghuiy opened this issue Sep 10, 2018 · 4 comments
Open

Where is the MVP's model in the presentation layer? #286

zhenghuiy opened this issue Sep 10, 2018 · 4 comments

Comments

@zhenghuiy
Copy link

Hi all.
I'm new here.

In my opinion, there is only V and P in presentation layer, is it right?

The domain layer and data layer look like the M in MVP ?

If it is true, why all the articles say that presentation use MVP instead of VP?

@St4B
Copy link

St4B commented Sep 14, 2018

Basically, the entities of the presentation layer are your models

@mishkaowner
Copy link

@zhenghuiy Response Model is M.

@Zhuinden
Copy link

it doesn't exist

@piotrek1543
Copy link

As @Zhuinden said, it does not exist as you you have already data and domain architectural layers for Model purposes. In this particular example presentation contains View+Presenter code. So as you said, V+P is in one module, where M is in data module

I think that helpful might be here this example of clean architecture pattern implementation: https://github.com/bufferapp/clean-architecture-components-boilerplate
Here presentation module is an extra layer containing ViewModel/Presenter things, whereas View related code is isolated as another module called mobile-ui.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants