Comments on: Design patterns Part IV – MVC /2010/09/design-patterns-part-iv-mvc/ Tue, 28 Dec 2010 16:54:53 +0000 http://wordpress.org/?v=2.9.2 hourly 1 By: mario /2010/09/design-patterns-part-iv-mvc/comment-page-1/#comment-935 mario Wed, 29 Sep 2010 23:04:54 +0000 /?p=292#comment-935 MVC is an overused phrase. What you're describing is PMVC or MVP. MVC is an overused phrase. What you’re describing is PMVC or MVP.

]]>
By: Ian /2010/09/design-patterns-part-iv-mvc/comment-page-1/#comment-930 Ian Wed, 29 Sep 2010 20:07:27 +0000 /?p=292#comment-930 My MVC definition is closer to what Rama suggested. Of course, MVC must be adapted to different code environments (MVC for desktop development is very different than for the web), but I typically suggest the following to those new to MVC: Model - Abstracts away your external resources or concepts into a class which acts as an API. Think "model" literally View - The template or UI later that users view. Controller - This is the glue between the model and view. It makes calls to models, manipulates the responses, and pushes data ready for rendering out to the view. My MVC definition is closer to what Rama suggested. Of course, MVC must be adapted to different code environments (MVC for desktop development is very different than for the web), but I typically suggest the following to those new to MVC:

Model – Abstracts away your external resources or concepts into a class which acts as an API. Think “model” literally

View – The template or UI later that users view.

Controller – This is the glue between the model and view. It makes calls to models, manipulates the responses, and pushes data ready for rendering out to the view.

]]>
By: Rama /2010/09/design-patterns-part-iv-mvc/comment-page-1/#comment-924 Rama Wed, 29 Sep 2010 16:31:41 +0000 /?p=292#comment-924 -- A part to handle the application logic (the model) Typically model represents that Data Model rather than application logic. Example: In Java EE world, Session beans handle application logic - session beans are not considered as Model. – A part to handle the application logic (the model)
Typically model represents that Data Model rather than application logic.
Example: In Java EE world, Session beans handle application logic – session beans are not considered as Model.

]]>