Wednesday, July 26, 2006

Tech World :: Framework || Design pattern

Framework Design pattern

Framework
1. A Framework is a reusable, semi-complete application.
2. A Framework is a skeleton you have to put skin on it to make it live.
3. A Frameworks might sometimes be designed on the guidelines of one or more design patterns.e.g. Struts is a frame work based on MVC design.
4. A FrameWork in general specifies collection Of classes and Interfaces that are designed to work together to handle a particular type of Problem.
5. A Framework is a skeleton of code used for developing an application with ease.
It could have used several design patterns to implement the skeleton upon which we generally build applications.
6. A Framework is a collection of API's used to develop a whole application.
7. It's a collection of intelligent objects.
8. Frameworks are more specialized than design patterns — Design patterns are more generalized…
For instance we use MVC in swing development or in J2ee environment.
9. Framework is Design Reuse.
Using framework we reuse the design.
Difference between API and Framework.
API are used for code reusability. Design patterns are used to build different parts of the frameworks.

* Links
http://en.wikipedia.org/wiki/Framework
http://st-www.cs.uiuc.edu/users/johnson/frameworks.html
http://www.acm.org/crossroads/xrds7-4/frameworks.html


Design pattern
1. Design pattern is an abstract idea - Way of doing things, a blueprint.
2. A Design pattern is not an application but is a solution to a commonly occuring design problem.

* Links
http://www.oreilly.com/catalog/hfdesignpat/index.html?CMP=ILL-4GV796923290
http://www.onjava.com/pub/a/onjava/2005/04/06/designpatterns.html
http://en.wikipedia.org/wiki/Design_pattern_(computer_science)
http://www.mindspring.com/~mgrand/pattern_synopses.htm#Interface
http://www.csc.calpoly.edu/~dbutler/tutorials/winter96/patterns/
http://www.patterndepot.com/put/8/JavaPatterns.htm - James W. Cooper
http://www.tml.tkk.fi/~pnr/GoF-models/html/ - GOF

-> Good example to understand the concept.
A framework can be seen as a motor Engine to which we have to just supply fuel and it takes care of generating energy for driving the vehicle…Here the point to be noted is how energy is generated ,what machine parts(Objects)collaborate to achieve the goal is the business of the engine(Framework)