Thursday, 15 August 2013

java - Explanation of correct using MVC pattern -


I have read this tutorial:

I have understood it very much, but this model Composition view controller is different from other examples.

In this tutorial, the controller is using data from the model (student) and updating the view (student view) with new data

but planning on this photo Accordingly, the controller is manipulating the model and updating the model view. According to this scheme the controller has a link to the model, and there is a link to look in the model (or am I wrong?).

This difference is confusing me Can someone help me and explain me the correct structure of the MVC pattern?

Enter image details here

< There is no MVC pattern because every language or framework will define it a little bit we know that the controller interprets business logic, the user processes the request. , And sends it into the model. The model contains data and may include some logic to validate itself or inform customers of change. The view formats the data, responds to the informing of the model or the controller, and presents it to the user, usually MVC refers to the pattern observer, composite and strategy, and often the factory, decorator and other patterns Will use. (Design Pattern Elements of Reusable Object Orient Software)

According to the diagram, I would say that this is mostly accurate, just a poor choice of words vs. the update vs. notification


No comments:

Post a Comment