Most voted "mvc" questions
Model-view-controller (MVC) is a model of software architecture that separates information representation from user interaction with it.
Learn more…743 questions
Sort by count of
-
67
votes2
answers18428
viewsWhat is MVP and MVVM?
It is very common to talk about the MVC (Model-View-Controller) standard. But the acronyms MVP (Model-View-Presenter) and MVVM (Model-View-View-Model) are very poorly cited. What they are and what…
-
46
votes1
answer29599
viewsWhat is MVC (Model, View, Controller)?
After all, how does this architecture pattern work by following the model, view and controller layers ?
mvcasked 9 years, 8 months ago Allan Ramos 2,488 -
35
votes3
answers1710
viewsWhat is the role of architecture standards in object orientation?
This question seems to have an obvious answer, but I confess that I still don’t get the idea myself. I am working with object orientation since 2011, mainly focused on web development. As soon as I…
-
28
votes2
answers1906
viewsWhat is the View in the MVC standard?
I started in 2016 to wear pattern MVC, the concept of Model and Controller I fully understand, but the question of View intrigue me. What is the View on a model MVC? I know that’s what the customer…
-
21
votes5
answers1899
viewsIs dealing with business rules in the model bad practice?
This is something that may seem simple, but it is not. After all how to define whether a rule should be in the service layer or in the model itself? To illustrate, think of the following: We have an…
-
21
votes3
answers10118
viewsWhere should the business rule be in the MVC standard?
A few weeks ago I started to study in depth ASP.NET MVC and, as I came from Windows Forms, there are some things that have not been very clear yet. In all the applications I’ve done so far in this…
-
20
votes4
answers4351
viewsHow and why use MVC in PHP?
I always made websites and systems without problem using structured PHP, came the curiosity if it is possible to make a system in OOP completely and if it is more advantageous. Searching I found the…
-
17
votes3
answers3943
viewsAlternatives to MVC for web applications
Context (TL; DR) When we talk about architectural design patterns, we usually talk about MVC. For the web, we usually use something like the following image: So much so that much of the frameworks…
-
16
votes3
answers3377
viewsHow does the MVC framework for Desktop applications work?
I have seen many web projects like php frameworks, Asp.net, however I read in some places that MVC came before the web, it was aimed at developing desktop applications, however I did not find…
c++ mvc pattern-design software-architecture software-engineeringasked 9 years, 2 months ago Guilherme Nascimento 98,651 -
15
votes2
answers3414
viewsWhat are the advantages and disadvantages between action-based and Component-based frameworks?
Regardless of the framework or language(php,java,c#) What are the main advantages and disadvantages between action-based and Component-based frameworks? In which environment does one or the other…
-
15
votes2
answers288
viewsWhere should exceptions be handled to display to the system user?
What is the best place to handle an exception and send a message to the system user in a desktop application? In the controller, in the view or elsewhere?
-
13
votes4
answers6431
viewsHow does the interaction between the layers in C# work and what is the function of each one?
Assuming a project with these layers: DAL, Controller, Negocio, Model and View I’m trying to learn C# seeing ready-made project codes, but not quite understood yet the correct order of creation and…
-
13
votes2
answers1652
viewsHow to perform TDD on the Service layer
I participate in a project that uses MVC layers with Hibernate framework persisting in a Postgres. Junit is used for testing and Mockito is used for mocking (I still have no knowledge and practice…
-
13
votes3
answers2379
viewsWhen is the controller needed?
I rarely use MVC for the simple fact that me it seems that each person uses their way, I know that the MVC came before the web, while reading these links I had a feeling that it seems that one…
mvcasked 9 years, 6 months ago Guilherme Nascimento 98,651 -
13
votes2
answers1340
viewsWhat good is a Viewmodel in ASP.NET MVC?
I’m used to the MVC approach of frameworks as Cakephp and Laravel. Now that I’m getting deeper into ASP.NET MVC, I’d like to understand what this Viewmodel is for. What is the purpose of the…
-
12
votes1
answer738
viewsWhat is Application Rules and what are the differences with Business Rules?
According to the definition of this website: Business rule is what defines the way to do business, reflecting internal policy, the defined process and/or the basic rules of conduct. That is, it is a…
-
11
votes1
answer172
viewsDifficulties with selecting items in a Qtreeview
Setting: I have an application that manages a list of images of human faces with prototypical emotional expressions. I created a class inherited from QAbstractListModel to provide the model (model)…
-
10
votes1
answer631
viewsWhat’s the difference between web MVC and desktop/mobile MVC?
Apparently the MVC model as employed in the web (Rubyonrails, Cakephp, etc.) is different from MVC as employed in desktop/mobile (Delphi, Android, etc). No desktop it seems to be more connected to…
-
9
votes1
answer1846
viewsWhat is the difference between "action based" and "Component based" MVC?
This answer of this question reflects the advantages and disadvantages of each, but without explaining the difference between them. I ask you: What’s the difference between them? Examples of…
-
9
votes3
answers388
viewsRefactoring of a java class
I have a Java class that contains 1756 lines (obviously not all code, has blank lines, many comments and some commented code in case it is needed in the future) I’m implementing the structure MVC…
-
9
votes2
answers326
viewsIs the term ASP.NET MVC correct?
Is it correct to use the term ASP.NET MVC? It seems that they are two different things, like, in MVC we no longer use components of ASP.NET, we use either HTML or Razor or both? I know that besides…
-
9
votes2
answers885
viewsDoubts about DAO, MVC, Multiple Tables and POJO
If anyone can help me, I have a question q has been consuming me a lot in recent days and is psychologically locking my studies (hehehehhe) MVC and DAO with multiple tables. I’m going to put here a…
-
8
votes1
answer660
viewsDifference between Library and Helper
What differentiates the helper of a library? For example: let’s say I have a class for URL manipulation. I call it and it completes the URL with the site path. That would be a helper?…
-
8
votes1
answer6771
viewsStructuring the PHP Router class with MVC
A friendly url of the type: www.meusite.com.br/controlador/metodo/argumentos Is treated in my class Request, where I "explode" the url, separating it into segments, which are respectively,…
-
8
votes2
answers226
viewsWhy does Value in Spring MVC need an asterisk?
Why do I need to put * no value when there is nothing else? I mean, before using Spring MVC worked smoothly only as /planilha/. The getPlanilha works properly but if it has the same RequestMethod…
-
8
votes1
answer823
viewsPSR-4 on an MVC project or not?
I have two codes, the first one uses spl_autoload_register and the other does not, however the second loads "automatically the class" also. With spl_autoload_register Uses namespaces to split MVC…
-
8
votes1
answer716
viewsIn Ruby on Rails is the business rule on the model?
In Java the business rule is in controller, but I heard a speaker saying that in Ruby on Rails the business rule is on model. Someone confirms that to me?
-
8
votes1
answer2886
viewsHow to represent the MVC classes in UML?
How to represent the classes of the mvc model at UML? A colleague told me that he only puts Control in his modeling. Is that correct? Another question would be whether I need to put the connection…
-
7
votes1
answer1621
viewsWhat are web Workers and how to use them
Through researches I understood that Web Workers allow the simultaneity of processes in Javascript. It would be like firing a thread Javascript that updates the View. It can be considered that it…
-
7
votes3
answers2732
viewsWhen and how to use protocols and delegates?
Could someone please explain to me in what situation and how to use delegates and protocols, I’m a little confused when to what I’ve read around, Thank you!
-
7
votes2
answers1353
viewsWhat can the Model do to validate the MVC?
In an MVC project developed in PHP, I should validate what in model and what in controller? Hash of passwords I’m doing in the method set of the classes model. Certain validations that are not…
-
7
votes1
answer1440
viewsWhat is Spring MVC?
I am developing a web java project and am using the MVC (Model-view-controller),which is a standard software architecture (Pattern design) and know that its function is to separate the…
-
7
votes3
answers1306
viewsDiagram of class MVC
I am developing a web system in php, where all controllers extend their respective models, for example: I have a user Control and a user?. Another question, my model methods are all protected,…
-
7
votes2
answers969
viewsWhat is the usefulness of the service layer in the Laravel?
What is the real usefulness of a service layer in the structure of Laravel? It’s just about separating the code from the Controller? How to use this layer correctly? My biggest question is whether…
-
6
votes2
answers194
viewsWhat are database model migrations?
Some MVC frameworks (Rails, Laravel and others) provide database model migrations. What they are, how they work and what are the advantages / disadvantages of using them?
-
6
votes3
answers3565
viewsUse ajax with Actionlink
I want to change the ActionLink and the URL to work with Ajax, but I don’t know how to do it. Follow my code with ActionLink and URL. <ul class="nav" id="side-menu"> <li> <a…
-
6
votes1
answer856
viewsHow to separate HTML files into a MVC architecture?
I have an application that uses Angular.js, which I started using now and never understood how to apply the concept of MVC to a project. I have two HTML pages, veiculo.html and index.html, both are…
-
6
votes1
answer4503
viewsStructure of MVC Folders
Hello. I am wanting to build my own application using the MVC standard. I understand the separation of each item(Model, View and Controller). But I want to make some sort of separation between the…
-
6
votes1
answer195
viewsApplication of more than one Pattern design
I’ve been studying about Patterns design and I thought it was really cool, but there was one thing I couldn’t understand. Regarding Patterns design, can I apply more than one of them to the same…
-
6
votes2
answers192
viewsIn MVC, if I have utility classes, will they be part of the models?
For example, let’s assume I have a string manipulation class called strman which I will use to store operations to work with strings, already in the models folder I own usuario and usuarioDAO, in…
mvcasked 8 years, 10 months ago Renan Cavalieri 2,748 -
6
votes1
answer843
viewsDataannotations for checking between Start Time and End Time
I have two fields of type [Datatype(Datatype.Time)], being Start Date and End Date, and I cannot let the user enter the End Date less than the Start Date for the purpose of calculating hours worked.…
-
6
votes1
answer289
viewsDropdown filter using C# MVC 4
I have a dropdown in my view that I fill in the following way: ViewBag.NfeStatus = EnumHelper .ListAll<NfeStatus>() .ToSelectList(x => x, x => x.Description()); My model Nfestatus is an…
-
6
votes1
answer1880
viewsMVC versus MVVM
I cannot differentiate between both MVC or MVVM. What really differentiates the MVC from the MVVM? In job interviews, sometimes they ask you exactly that, how do you differentiate one from the…
-
6
votes1
answer1495
viewsAjax running Controller (MVC, PHP)
I just started to give a studied in mvc, and I have a question. How to make my ajax execute certain method of my controller. obs. I’m not using any framework, below is the code. View <div…
-
6
votes3
answers230
viewsBi-directional asynchronous communication in layers
I have system in Asp.Net MVC (.Net 4.5) divided in layers: That said, let’s get to the problem... I’m trying to create a screen to send emails asynchronously (3 emails at the same time, for…
-
5
votes1
answer3509
viewsHow to implement a login system in a MVC standard?
I’m studying about mvc with php, I managed to make a simple start system, only I was left with doubts in some points, how can I implement my login system? where I should "take" the values of POST…
-
5
votes2
answers780
viewsMulti-tenant system with the possibility of "customization"
I am raising knowledge for the creation of a multi-tenant system. I’ve been taking a look at some references from MSDN, SOEN and SOPT, as well as several websites. Although I have read the…
-
5
votes3
answers665
viewsWhat does the term "routing" mean in the context of MVC architecture?
I’m beginning in the study of this architecture and came across this term : routing. Edit I need some framework to develop based on this architecture ?…
-
5
votes2
answers263
viewsIn a MVC structure, can we create a model that represents a View (SQL)?
I was arguing with a friend of mine about using views (I mean Mysql, not Mysql Pattern MVC). Hence a doubt arose in the following sense: A Model is used to represent a data structure, and you can…
-
5
votes1
answer743
viewsWhat is namespace really for?
I would like to understand the great need and usefulness of namespaces in MVC architecture. In what circumstances the use of namespaces becomes indispensable? Give an example of a specific case if…