MVC Analogy – (Model View Controller)

Sometime to under stand a concept more deeply, analogy really helps. we can relate concepts with something we already know and can imagination. Mike has given me a good example of Bank working as MVC.

Just image the functionality of todays bank and see how its work flow is MVC.

Initial thinking – you can think of data as gold or money kept in the safe of a bank. One cannot access the locker/safe or a bank directly. His access is controller by some mechanism.

You go to bank “May i help you counter” and request for money withdraw. The receptionist puts you request in a queue and gives you a token and redirects to a particular counter. Here receptionist acts as Controller.
When you reach that counter the guy there asks for you Id proof account number and other details as per bank rules for verification. This guy acts as Model which has some set of rules to interact with database.
The guy provides you the money from your safe ie the data from the database.
Finally you can think of  bank receipt as you view.

Its just a platform to imagine … add more scenarios.


One thought on “MVC Analogy – (Model View Controller)

  1. AHJ is interested in partner websites in the medicine genre. AmericanHealthJournal is a medicine content site which contains a large library of high quality health videos. We are looking for blog owners who may be interested in content based partnerships. We can offer content exchanges, link exchanges, and exposure to your site. Get in touch with us at our contact form on our web site.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s