views:

48

answers:

1

After doing some reading on the Model View Controller pattern it seems that the pattern is implemented quite differently in web frameworks vs desktop frameworks. With web based MVC frameworks the view and model never communicate directly. They can only communicate with the controller. But in desktop implementations, it seems that the view and model can communicate directly which doesn't make sense to me. That would seem to defeat the purpose of MVC of having separate, clean, isolated layers. Plus, what does the controller do if the view and model communicate directly?

Here is a diagram from Wikipedia illustrating MVC.

alt text

Model-View-Controller

A: 

It's a funny thing that I wrote recently an article on my blog about the different implementation of the MVC concept in web frameworks.

You can read it here.

mhitza