Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Is MVC Pattern/Framework

 
Ram Dhan Yadav K
Ranch Hand
Posts: 321
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am getting a big doubt these days, as i have seen postings and questions related to MVC which are interpreting MVC as a pattern. I strongly oppose this usage as i believe MVC is a framework/architecture not a pattern.
Do you want to join or oppose my stance?
 
okeyokey
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think mvc is a general design pattern, probably the simplest one
 
Axel Janssen
Ranch Hand
Posts: 2166
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Think we need clearer definitions:
1.) what is a pattern (from IBM_developerworks pattern tutorial:

The Gang of Four described patterns as "a solution to a problem in a context". These three things -- problem, solution, and context -- are the essence of a pattern. For documenting the pattern it is additionally useful to give the pattern a name, to consider the consequences using the pattern will have, and to provide an example or examples.
Different catalogers use different templates to document their patterns. Different catalogers also use different names for the different parts of the pattern. Each catalog also varies somewhat in the level of detail and analysis devoted to each pattern.

I deduce the following:
1. (pragmatic) So the only patterns which should count for the exam are those in Suns J2EE Pattern catalog. I think there is no MVC.
2. The term "pattern" has a very broad focus in relation to areas to be used ("a solution to a problem in a context"( )). Its the form in which s.th. is presented that qualifies s.th. as a pattern.
So I think that every architecture can be described in form of a pattern. Patterns exists in different contexts, including an architectural context (focus).
Co-Rancher Kyle Brown calls in "Java Programming with IBM WebSphere" MVC a pattern:

[...] Together, these three object types form the core of a powerful architecture expressed in the MVC (Model-View_Controller) design pattern. [...] (P. 25)

Axel
[ January 26, 2002: Message edited by: Axel Janssen ]
 
Chintan Rajyaguru
Ranch Hand
Posts: 341
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
MVC is a pattern because one, it fits into pattern definition and two, it is described as pattern everywhere.
A framework in general sense is an implementation of pattern(s). For example Struts is a framework which is an implementation of MVC pattern. Find out more about struts on
http://jakarta.apache.org/struts/index.html
I would love to learn more about clear distinction between framework and pattern.
 
Ram Dhan Yadav K
Ranch Hand
Posts: 321
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Struts document says
Struts encourages application architectures based on the Model-View-Controller (MVC) design paradigm, colloquially known as Model 2.
This model 2 is an architecture, not a pattern. Now i understand that pattern has a different scopes based on the problem statement. But, I strongly believe that MVC is a frame/architecture not a pattern.
B'cos lots of people are saying MVC pattern does not mean that they rally mean its a design pattern. They might be using it as a common language term(my assumption).
Struts basically optimizes the MVC design PARADIGM. All the different patterns deffined by GOF, Larman, Craig, Fowler and may others tries to arrange themselves in the frameworks/ architectures. I have read in some martin Fowlers book, framework/architecture are entirely different from design patterns and they server different purposed. I will let you know exactly what he says, i need to rebowse through the books. Right now, i am going to give the SCWCD exam on 31st and so will be a little bit busy with that stuff.
I would love to hear more comments on this.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic