Because each part is developed by specialized developers, an application can be of better quality. For example, domain and database experts can work on a model while web designers work on a view. For example, a web application typically has HTML representation, used by web browsers, and JSON representation used by JavaScript AJAX clients.Ī distinctive MVC role allows us to better distribute manpower on a big project. When you separate a model from its representation you can easily add many different representations of the same model. The separation of a model from its representation is one of the basic rules of a good software design. MVC separates the model from the view, that is, the data from its representation. I am going to describe few positive aspects I can think of. The negative is that the MVC pattern introduces complexity into the project which can be a burden for simple applications, but as your application grows this negative aspect is over weighted by positive aspects. This, usually, involves manipulating the model and displaying the data in the selected view.Īs I think about the MVC pattern I can see only one negative aspect and several positive aspects. Controller – represents applications workflow, it processes the request parameters and decides what to do based on them.It can query the model about its state and generate the presentation of the model objects. The domain represents the problem you are trying to solve. Model – represents applications behavior and data.In MVC, the model represents the information (the data) of the application the view corresponds to elements of the user interface such as text, checkbox items, and so forth and the controller manages the communication of data and the business rules used to manipulate the data to and from the model. Successful use of the pattern isolates business logic from user interface considerations, resulting in an application where it is easier to modify either the visual appearance of the application or the underlying business rules without affecting the other. Model–View–Controller (MVC) is an architectural pattern used in software engineering.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |