Skip to main content

Questions tagged [mvp]

The Model-View-Presenter (MVP) architectural pattern that enforces the separation of concerns in presentation logic. This pattern is a derivation of the Model–View–Controller (MVC) architectural pattern.

2votes
1answer
111views

Concrete implementation of MVP with "dumb" view

I recently started designing my first MVP-app. I like the idea of having a "dumb" view to be able to cover as much of the code with unit tests. The app I build will be an app to create ...
Ennio's user avatar
1vote
2answers
563views

How to structure libraries/solution for Onion Architecture with Model View Presenter pattern?

Hobby coder here, so please be gentle! My coding is taking me into the necessary realms of architecture due to increasingly complex apps. I'm wondering how to structure my solutions which will involve ...
stigzler's user avatar
4votes
2answers
1kviews

Passing data through events to adhere to the Tell-Don't-Ask principle?

In my little WinForm app, intended to practice as a hobbyist, I'm using this code to pass data from the View to its Presenter: public event Action<object, string, string?>? SearchInAlbums; ...
Valmont's user avatar
2votes
1answer
316views

How to properly use Data Transfer Objects

I feel something is wrong with my approach handling MVP and the Repository Pattern. I'm making an album winform app just to practice MVP, crud and the Repos. Pattern. First some code. The model: using ...
Valmont's user avatar
1vote
2answers
190views

Should selected person be part of my application layer? (MVP pattern)

Consider the following GUI screen: When user selects a person from PersonListView, EditPersonView should show person's first name and last name and allow the user edit. So, I end up with the ...
George Z.'s user avatar
-2votes
2answers
521views

Proper way of implementing MVP passive in C# .net

In "MVP Passive" where a view doesn't know about it's presenter the view just raises events observed by the presenter, the presenter knows the view and its controls how should view and ...
rnm-kmdi's user avatar
0votes
2answers
168views

How to construct a model state dependent context menu in a MVP GUI application

Lets say I have a GUI application which tries to adhere to Model-View-Presenter (MVP) as best as possible. In this application I have a list box with items. One should be able to interact with these ...
UsYer's user avatar
1vote
0answers
234views

Rest API backend and React frontend is MVP?

I'm doing a website that has a React frontend that calls some RESTful API and I would like to know if this is an MVP pattern. I think that the React application implements the View and the Presenter, ...
Lorenzo Felletti's user avatar
-3votes
1answer
276views

What is advantage of parameter-less methods?

MVP best practices recommend using parameter-less methods when view and presenter communicate. Even if using events, it is recommended not to use event parameters. It is recommended to change class ...
kyrpt's user avatar
1vote
1answer
440views

Adding item (or incrementing count) to ListView, with the MVP pattern in WinForms

Description A WinForms application with the following as part of a form: When the "Add" button is clicked, a new entry is added to the ListView, with data from the TextBoxes and ...
Al2110's user avatar
-6votes
1answer
102views

Outsourcing The MVP development

our company wants to outsource the development of MVP. Since it is my first project as a product manager, I am expecting story map ERD Technical specifications i.e. language, database, DevOps & ...
product_n's user avatar
2votes
0answers
69views

Do MV* architectural patterns apply not only to OO languages but also functional languages?

I am learning about MV* architectural patterns, thanks to the help from several answers here. I learned that they are used for designing the architectures of user interactive applications. I also ...
Tim's user avatar
  • 5,525
1vote
1answer
233views

Question on MVP Pattern, Events and saving complex objects

I'm working on a winforms project that involves 3d models, Opengl graphics, hierarchical project files and uses an MVP approach. Currently i have things setup such that when the user manipulates ...
PeteByte's user avatar
4votes
4answers
997views

Refactoring ASP.NET Web Forms App to use MVP vs incrementally rebuilding it using MVC?

My team has inherited a Web Forms application that was built over the past decade or so into a monolithic code base with massive dependencies. In order to maintain this system we are going to have to ...
user avatar
1vote
1answer
384views

How to inform presenters of sub views of a main window about global data change in an MVC or MVP GUI app?

Suppose I'am writting a GUI desktop application which has a main window with a corresponding presenter. This main windows may host one or multiple panels which each also have their own presenter. The ...
UsYer's user avatar

153050per page
close