Para Juan, que queria mas opiniones acerca del MVC.

En caso de que no lo conozcas, Ralph Johnson es un destacado profesor, con
años de enseñar Smalltalk.


------ Mensaje reenviado
De: Ralph Johnson <[EMAIL PROTECTED]>
Responder a: The general-purpose Squeak developers list
<[EMAIL PROTECTED]>
Fecha: Mon, 17 Jul 2006 00:15:11 -0500
Para: The general-purpose Squeak developers list
<[EMAIL PROTECTED]>
Asunto: Re: MVC song

The problem is that the song is NOT about Smalltalk MVC.  In this
song, the controller is a layer between the view and the model, which
usually means it is a mediator.  The song also says that the
controller is copying values from one field to another, which also
indicates that it is a mediator.  However, in true MVC, the controller
is a strategy for handling events.  The events come directly to it,
rather than to the view.  The controller changes the model, but it is
not notified by the model.  When the user presses a key or moves the
mouse, the controller receives the event.  It checks with the view to
map mouse locations into model coordinates, then interacts directly
with the model.  If it changes the model then the model notifives all
dependents (observers), which notifes the view, which redisplays.

The song desribes Ivar Jacobson's Model/Interface/Control, in which
the Control is responsible for an entire use case.  It is not MVC.
Jacobson's model is like the MVC model, but his Interface is a
combination of View and Controller and his Control is not at all like
a real Controller.

-Ralph Johnson

------ Fin del mensaje reenviado



        
        
                
___________________________________________________________ 
1GB gratis, Antivirus y Antispam 
Correo Yahoo!, el mejor correo web del mundo 
http://correo.yahoo.com.ar 



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"clubSmalltalk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/clubSmalltalk
-~----------~----~----~----~------~----~------~--~---

Responder a