View this PageEdit this PageAttachments to this PageHistory of this PageHomeRecent ChangesSearch the SwikiHelp Guide
Hotspots: Admin Pages | Turn-in Site |
Current Links: Cases Final Project Summer 2007

Sp02 Final Exam Review: MVC vs. Morphic

Suggestion: Answer this one. Mark Guzdial

a. Name an application where MVC is preferable to Morphic.

.Would you like to run Morphic on a Palm? Mark Guzdial.

b. Name an application where Morphic is preferable to MVC.


c. Identify three major design differences between Morphic and MVC.

Jonathan Broomfield
.I didn't grok that last point... Consider others, e.g., "step"? Mark Guzdial.
(Taken from final review Fall 2001)
You don't get to use past final reviews on the actual final. You're only allowed in with your brain. Might want to exercise that rather than the search function :-) Mark Guzdial


d. Can you use the MVC Paradigm in Morphic? Why or why not?


Nobody knows? Think about "step" and dependents and controllers. Mark Guzdial

e. Name at least one commercial UI package today that is based on the MVC paradigm.

.Think Swing... Mark Guzdial.

Michael L. Mitchell





a. Name an application where MVC is preferable to Morphic.


b. Name an application where Morphic is preferable to MVC.


c. Identify three major design differences between Morphic and MVC.


Does it have to? What parts are DEFINITELY combined, and what parts CAN be combined? Mark Guzdial
Well said. Mark Guzdial
d. Can you use the MVC Paradigm in Morphic? Why or why not?



e. Name at least one commercial UI package today that is based on the MVC paradigm.


Some of these answers have been combined with answers from previous terms.
Jai Kejriwal


Does morphic combine the View and the Control? That is the View and the Control are definitley combined. I think that is the case but am unsure.

Randy Rockinson




I agree with all of these answers but I would have to add to d.
d.Yes, you can use the MVC paradigm in Morphic. The only thing is that in Morphic the controller is actually built in to the Handmorph class which is part of the world. So you really don't have to create a controller. Although it can be done with a lot of work.
Eric Soto

a. Name an application where MVC is preferable to Morphic.


Running morphic on a palm wouldn't make sense because MVC is more lightweight, more portable, and Morphic would allow multiple view to be active at once, but a palm only has one window so that is not necessary.

b. Name an application where Morphic is preferable to MVC.

Again, Morphic can have multiple windows (morphs) active at the same time, which is how multiple little images in a Flash movie can all move. Basically anything with animation or multimedia is better in Morphic.
e.g. Making a ball bouncing animation (just like in the Squeak book)

c. Identify three major design differences between Morphic and MVC.

1. In Morphic the cursor is a HandMorph, so there can be more than one cursor and thus more than one person interacting with the Morphic World at any time.

2. MVC allows multiple views of the same Model.

3. MVC keeps the Model, View and Control separate, in Morphic the Model and View are merged by default and must be separated if the programmer chooses to do so.

d. Can you use the MVC Paradigm in Morphic? Why or why not?


"Morphic interfaces don't necessarily have to follow the MVC paradigm, but they can."
http://minnow.cc.gatech.edu/squeak/uploads/ programmingmorphic.pdf

"The most interesting philosophical difference I've noticed between
Morphic and MVC, is that a Morph is never in full control of the UI.
This is different from MVC, where the Controllers all take turns running the ship.
Lex"
http://squeak.cs.uiuc.edu/mail/squeak/msg00108.html

More on what lex was saying,

"The World PasteUpMorph does something very important: It runs doOneCycleNow repeatedly. This method updates the cursors, processes user interface events for the given cursor, runs step methods, and updates the display"
http://minnow.cc.gatech.edu/squeak/uploads/programmingmorphic.pdf

e. Name at least one commercial UI package today that is based on the MVC paradigm.


"The Java Swing UI, for example, is based on MVC"
"http://minnow.cc.gatech.edu/squeak/1767"
Hank Wilde


You're right – the controller and view are merged in Morphic. Can you do models and dependents in Morphic? Sure! Do people do that normally? Nah – most Morphic interfaces poll the model or merge the model and the view. So you CAN do MVC Paradigm in Morphic (caveat the lack of controllers – the important part is the Model-View communication), but you can also NOT do it. Mark Guzdial



Link to this Page