Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes OO, Patterns, UML and Refactoring and the fly likes MVC - A  PATTERN OR A FRAMEWORK? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Engineering » OO, Patterns, UML and Refactoring
Bookmark "MVC - A  PATTERN OR A FRAMEWORK?" Watch "MVC - A  PATTERN OR A FRAMEWORK?" New topic
Author

MVC - A PATTERN OR A FRAMEWORK?

Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8898

HI,
Is MVC a pattern or framework ?
I understand it as a pattern but my friend say it is a framework.


Groovy
Frank Carver
Sheriff

Joined: Jan 07, 1999
Posts: 6920
This question has cropped up here a few times. I believe the consensus is that what most people know as "MVC" is an "architectural pattern" which in turn can make use of several "design patterns", if needed.
A framework is an actual implementation of some sort, designed to be extended, adapted or customised as appropriate to the needs of your application.


Read about me at frankcarver.me ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
Prakash Nulu
Greenhorn

Joined: Nov 13, 2002
Posts: 1
MVC is a Design Pattern and the Struts is the Framework to implement MVC
Ilja Preuss
author
Sheriff

Joined: Jul 11, 2001
Posts: 14112
I would agree with Frank that MVC is rather an Architectural Pattern than a Design Pattern - but the distinction probably isn't that important.
Struts is *one* implementation of the pattern - there are, of course, an uncountable amount of others.


The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8898

Hi all,
whatz the difference between design patterns and architectural pattern
Ilja Preuss
author
Sheriff

Joined: Jul 11, 2001
Posts: 14112
Originally posted by Pradeep Bhat:
Hi all,
whatz the difference between design patterns and architectural pattern

It's mostly a matter of magnitude:
- a Design Pattern is a solution to a rather localized problem - like "how can several classes share and customize a basic algorithm" -> Template Method.
- an Architectural Pattern is a solution to a rather global problem and therefore often more abstract than a Design Pattern - like "how can I shape the system, so that changes in the UI don't affect the model" -> MVC
Fisher Daniel
Ranch Hand

Joined: Sep 14, 2001
Posts: 582
Dear all,
In J2EE, there are a lot of design patterns, like Session Facade, Value Object, etc...
Are these Architectural Patterns ?
thanks
daniel
Ilja Preuss
author
Sheriff

Joined: Jul 11, 2001
Posts: 14112
Originally posted by Fisher Daniel:
Dear all,
In J2EE, there are a lot of design patterns, like Session Facade, Value Object, etc...
Are these Architectural Patterns ?

No, those are Design Patterns - they are rather affecting a small number of objects instead of the whole architecture, afaik.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: MVC - A PATTERN OR A FRAMEWORK?
 
Similar Threads
Lyons book cover Struts?
Struts selection
pattern vs architecture?
MVC an architecture or pattern?
MVC pattern in Struts