Berkeley CSUA MOTD:Entry 47716
Berkeley CSUA MOTD
 
WIKI | FAQ | Tech FAQ
http://csua.com/feed/
2018/11/17 [General] UID:1000 Activity:popular
11/17   

2007/8/23-27 [Computer/SW/Languages/Java] UID:47716 Activity:nil 75%like:47714 80%like:47718
8/22    What is a controller?  What is a model?  What is a view?
        \_ http://en.wikipedia.org/wiki/Model-view-controller
2018/11/17 [General] UID:1000 Activity:popular
11/17   

You may also be interested in these entries...
2013/4/29-5/18 [Computer/SW/Languages/C_Cplusplus, Computer/SW/Compilers] UID:54665 Activity:nil
4/29    Why were C and Java designed to require "break;" statements for a
        "case" section to terminate rather than falling-through to the next
        section?  99% of the time poeple want a "case" section to terminate.
        In fact some compilers issue warning if there is no "break;" statement
        in a "case" section.  Why not just design the languages to have
        termination as the default behavior, and provide a "fallthru;"
	...
2013/5/1-18 [Computer/Theory, Computer/SW/Languages/Java] UID:54669 Activity:nil
5/1     What's the difference between CS and Computer Engineering?
        http://holykaw.alltop.com/top-ten-paying-degrees-for-college-graduates
        \_ One is science and the other is engineering.
        \_ From http://en.wikiquote.org/wiki/Computer_science
           'A folkloric quotation ... states that "computer science is no more
           about computers than astronomy is about telescopes."  The design
	...
2013/3/5-26 [Computer/SW/Languages/Java] UID:54618 Activity:nil
3/5     Three emergency Java updates in a month. Why do I have a feeling
        that the third one won't be the last one?
        \_ Bingo!
	...
2012/12/18-2013/1/24 [Computer/SW/Languages/Perl] UID:54561 Activity:nil
12/18   Happy 25th birthday Perl, and FUCK YOU Larry Wall for fucking up
        the computer science formalism that sets back compilers development
        back for at least a decade:
        http://techcrunch.com/2012/12/18/print-happy-25th-birthday-perl
        \_ I tried to learn Perl but was scared away by it.  Maybe scripting
           lanauages have to be like that in order to work well?
	...
2012/12/4-18 [Computer/SW/Languages/Java] UID:54544 Activity:nil
12/4    Holy cow, everyone around me in Silicon Valley is way beyond
        middle class according to Chinni's definition:
        http://en.wikipedia.org/wiki/American_middle_class
        \_ Let's set our goals higher:
           http://en.wikipedia.org/wiki/Upper_middle_class_in_the_United_States
           \_ How about this one?
	...
2012/10/29-12/4 [Science/Disaster, Computer/SW/Languages/Java, Politics/Domestic/President/Bush] UID:54516 Activity:nil
10/29   Go Away Sandy.
        \_ Sorry, Coursera is performing preventive maintenance for this
           class site ahead of Hurricane Sandy. Please check back in 15 minutes.
           class site ahead of Hurricane Sandy. Please check back in 15
           minutes.
        \_ Bitch.
	...
Cache (4259 bytes)
en.wikipedia.org/wiki/Model-view-controller
A simple diagram depicting the relationship between the Model, View, and Controller. Note: the solid lines indicate a direct association, and the dashed lines indicate an indirect association (eg, observer pattern). A simple diagram depicting the relationship between the Model, View, and Controller. user interface (view) concerns, so that changes to the user interface will not affect data handling, and that the data can be reorganized without changing the user interface. MVC encompasses more of the architecture of an application than is typical for a design pattern. Model The domain-specific representation of the information on which the application operates. It is a common misconception that the model is another name for the domain layer. Domain logic adds meaning to raw data (eg, calculating if today is the user's birthday, or the totals, taxes and shipping charges for shopping cart items). Multiple views can exist for a single model for different purposes. Controller Processes and responds to events, typically user actions, and may invoke changes on the model. Java Swing is different from the other frameworks, in that it supports two MVC patterns. Model (Frame level) Like the other frameworks, the design of the real model is usually left to the developer. Model (Control level) Swing also supports models on the control level. Unlike other frameworks, Swing exposes the internal storage of each control as a model. View The view is represented by a class that inherits from Component. Controller Java Swing doesn't necessarily use a single controller. Because its event model is based on interfaces, it is common to create an anonymous action class for each event. NET, the patterns for the view and controller are not well defined. The model is left to the developer to design, views and controls can be created in a variety of ways. A typed DataSet allows one to create an entity specific model. View The ASPX and ASCX files generally handle the responsibilities of the view, although it can also come from compiled server controls. With this pattern, the view object inherits from the controller object. This is different from the Smalltalk implementation, in which separate classes have pointers to one another. Controllers The duties of the controller are split between two places. The generation and passing of events is part of the framework and more specifically the Page and Control classes. However, moving code specific to the transition between views in a separate Controller is a good practice. In turn, it becomes possible to centralize the registration of Observers in the isolated Controller. NET framework, the patterns for the view and controller are well defined. The developer has the option to create a model class, but may choose to forget it and have the event handlers in the controller perform any calculations and data persistence. Again, using a model to encapsulate business rules and database access is both possible and preferable. View A class inheriting from either Form or Control handles the responsibilities of the view. In the case of WinForms, the View and Controller are compiled into the same class. Net, which uses inheritance, and Smalltalk, which have separate classes with pointers to one another. Controller The duties of the controller are split between three places. The generation and passing of events starts at the OS level. Net framework, the Form and Control classes route the event to the proper event handler. GUI frameworks such as: Please remove all web frameworks from this list. Please structure the list by language headlines in alphabetic order, analogous to the section Implementations of web frameworks. XForms has a clear separation of model (stored inside the HTML head section) from the presentation (stored in the HTML body section). XForms uses simple bind commands to link the presentation to the model. 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. Wikipedia spam also consists of external links to websites which primarily exist to sell goods or services, use objectionable amounts of advertising, or require payment to view the relevant content.