mvp Questions

3

Solved

I follow the MVP pattern + UseCases to interact with a Model layer. This is a method in a Presenter I want to test: fun loadPreviews() { launch(UI) { val items = previewsUseCase.getPreviews() //...
Tantrum asked 16/4, 2018 at 19:42

2

Solved

I am and android developer and I have worked on all of these three architecture patterns in my applications. Also I have gone through several post's on stackoverflow about the difference of each. M...

5

Solved

If we had a defined hierarchy in an application. For ex a 3 - tier architecture, how do we restrict subsequent developers from violating the norms? For ex, in case of MVP (not asp.net MVC) archite...
Birkenhead asked 27/4, 2010 at 5:11

4

Solved

I'm trying to create a simple app with retrofit 2, dagger 2 and MVP, but I struggle with dependencies, actualy, this is the error I get after i try to rebuild the project Error:Execution failed for...
Braunstein asked 6/12, 2016 at 13:18

4

Despite I google-d for some time I couldn't find any of the Model-View-XYZ framework implementations for server-side Blazor, that is Razor Components (XYZ stand for any of the following: Controller...
Jahvist asked 12/3, 2019 at 12:52

6

If we search Google using the phrase "differences between MVC, MVP & MVVM design pattern" then we may get a few URL's which discuss the difference between MVC MVP & MVVM design pa...
Marquand asked 18/10, 2013 at 7:55

24

Solved

When looking beyond the RAD (drag-drop and configure) way of building user interfaces that many tools encourage you are likely to come across three design patterns called Model-View-Controlle...

1

I'm a little bit confused about these two programming patters: MVC and MVP. Which are the main differences between them?; I have been searching on the net and I made a couple of examples of both o...
Barbarous asked 9/3, 2010 at 18:54

2

Solved

What is the difference between MVP VS MVVM? Why we are using MVP even though we have three layers: business, data access and presentation? Is there any specific reason to divide the Presentation la...
Pasco asked 19/12, 2010 at 6:43

4

Solved

I am trying to develop a Project Management System in my application following the Model View Presenter (MVP) pattern. My question is this, I have seen numerous examples of MVP but I haven't seen o...
Immoralist asked 19/3, 2012 at 15:28

4

I was using MVP when I was working with WinForm. But I moved to MVVM when I started playing with WPF or Silverlight. The only thing that I noticed is that we don't need to sync with the data betw...
Cockscomb asked 6/11, 2009 at 7:10

3

Solved

I have a question about how to handle communication between presenters when using MVP. Say I have two MVP-triads. One is a list of products (Triad A) and the other is some general information about...
Cerebrospinal asked 18/3, 2012 at 19:32

1

I am writing a utility program using a Swing GUI. I am trying to use Martin Fowler's Presentation Model to facilitate testing. My application will automatically store several user preferences using...
Asben asked 11/4, 2011 at 11:56

4

Solved

using MVVM or MVP should i name packages like model, viewmodel, view and put proper classes and interfaces there or is it just a logical structure that should not be visible in classes structure?
Chalfant asked 9/3, 2018 at 19:0

2

Solved

I've been doing some research on pros and cons of MVC/MPV/MVVM and one common theme is that MVC is harder to unit test than MVP and MVVM but I don't fully understand why. From my current understan...
Fusion asked 20/6, 2019 at 13:15

3

Solved

How to determine size of data returned before setting adapter? How to use emptyview with paging library? How to set emptyview if pagedlist returns null or no data?
Cofferdam asked 15/11, 2018 at 5:34

5

Solved

I am currently trying to implement the MVP pattern on Android. However, I came to think about memory leaks (since the presenter holds a reference to the activity - the view). My question is, should...
Whereof asked 18/12, 2016 at 0:53

3

In mvp we save that reference of an activity in a weak reference. WeakReference<Activity> view = new WeakReference<Activity>(activity); If we lose the reference. can we get it back?
Gripper asked 8/9, 2015 at 8:25

3

Solved

I'm developing an android app in which I have to ask for permissions at runtime. I'm wondering about the best way to implement that using Model-View-Presenter architecture. My initial thought was ...
Wallie asked 6/12, 2016 at 18:17

5

I'm with some doubts regarding the state save using MVP on Android. I defined my fragments/activities as views and then implemented the corresponding presenters. My example is simple: I have a ac...
Omaomaha asked 19/5, 2015 at 17:13

5

I have this weird problem that I cannot handle myself. A class in the model of my mvp-project designed as singleton causes an InvalidCastException. The source of error is found in this code line wh...
Agan asked 23/3, 2010 at 13:35

4

Solved

Would it be an anti-pattern if from a Presenter layer I open an Activity? If so, should I manage the navigation of the app from the View Layer?
Candlenut asked 28/4, 2016 at 10:40

3

Solved

I'm using Recyclerview inside a Fragment Following Google's sample of MVP Android architecture and I tried to make the View part passive as possible following this article , which makes the whole R...
Streamlined asked 9/10, 2017 at 12:41

2

I'm building an android app with clean architecture using MVP pattern, and repository pattern at the data layer. I'm a little confused about the business objects. Should there be an object to use i...
Ankeny asked 25/6, 2017 at 12:16

2

Solved

I've been following MVP design pattern provided by Google to refactor my application. I have one MainActivity and many Fragments and it seems little be messy for me to create an activity for every ...
Towards asked 15/3, 2017 at 20:25

© 2022 - 2024 — McMap. All rights reserved.