|
|
|
|
|
by narribbi
3338 days ago
|
|
When you read Trygve Reenskaug's original 1979 paper "MODELS - VIEWS - CONTROLLERS" -- it is very short, simple, and crystal-clear -- (http://heim.ifi.uio.no/~trygver/1979/mvc-2/1979-12-MVC.pdf), it obvious what Trygve meant: * The MODEL is something like a web server * The VIEW is something like a browser * The CONTROLLER is something like the Windows start menu Trygve literally writes: "A view (=browser) is attached to its model (=server) and gets the data necessary for the presentation
from the model by asking questions (=submitting queries). It may also update the model (=posting) by sending appropriate messages. A controller (=start menu) provides the user with input (=menu items) by arranging for relevant views (=windows) to present themselves in appropriate places on the screen." |
|
Case in point: to you, it seems obvious that the controller is like the Windows start menu. To me, that doesn't make any sense at all.