![]() |
|
|||||||||||||||||
Model-view-controller(Redirected from Model-View-Controller)
The pattern was first described in 1979 by Trygve Reenskaug, then working on Smalltalk at Xerox research labs.
Though MVC comes in different flavors, control flow generally works as follows:
In the design of web applications, MVC is also known as a "Model 2" architecture. Complex web applications continue to be more difficult to design than traditional applications, and MVC is being pushed as a potential solution to these difficulties. The MVC design also allows programs written in otherwise platform-specific languages to be almost completely platform-independent. Since the model and controller generally have no knowledge of the interface, the programmer is free to implement both in a cross-platform language such as C or C++. As a result, the hardest part of porting the application is redesigning the interface for the new operating system. The platform-specific language (such as Objective-C/Cocoa) is only used to notify the controller of user events and to respond to changes in the model. Theoretically, an application written entirely under the Cocoa framework for Macintosh could easily be ported to Windows under the .NET framework, as long as the model/controller is written only in C++. All that would have to be done is to redesign the interface in Visual Studio, and plug it into the existing model/controller, which is quite easy compared to the daunting task of rewriting the entire core of the program. Implementations
See alsoExternal links
The contents of this article are licensed from Wikipedia.org under the GNU Free Documentation License.
How to see transparent copy 01-04-2007 01:21:04 |
|





