Popular Posts

Sunday, March 27, 2011

Model­View­Controller


Model‐view‐controller(MVC) is a design pattern commonly used in user interfaces.Its goal is to keep the "data" separate from the user interface.
For example, when designing a program that displays stock information, the code that downloads the stock information should not depend on the code that displays the information.

The exact meaning of model‐view‐controller is a bit ambiguous. Essentially, a program that uses model‐view‐controller
uses separate programming entities to store the data (the "model"),to display the data (the"view"),and to modify the data
(the "controller"). 

In model‐view‐controller, the view usually makes heavy use of listeners  to listen to changes and events in the model or the controller.

Model‐view‐controller is a good buzzword to whip out when you're asked a design question relating to a user interface.

No comments:

Post a Comment