• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

What are Design patterns exactly?

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
1. I would like to know what are design patterns exactly?
2. Where are they used in s/w development?
3. are they only applicable only on J2EE applications?
4. are they just framworks sort of things (Completely theoretical) OR implementd using some interfaces and abstract classes?
5. Is it required to use them?
 
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
1. Google on "design patterns".
2. Anywhere needed. And for many, anywhere not needed too
3. No. Any program.
4. Not framework. Interfaces are used to express some patterns.
5. No. At least, not when you don't know how to. Some people argue that it makes program less readable.
 
Ranch Hand
Posts: 8945
Firefox Browser Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
A Design pattern is a solution to a problem which has been successfully applied on several occasions before.
 
author
Posts: 14112
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Satou kurinosuke:
1. Google on "design patterns".



Or even better for "define: design pattern".
 
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It is a solution to a recurrent problem
 
Ranch Hand
Posts: 1871
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
1. I would like to know what are design patterns exactly?

Lets say you are an architect and asked to provide a design for a 3 bedroom house. You are asked to provide a solution in a few hours. What would you do ??

You would look up some common designs for a 3 bedroom house and show them to the client. right ??

Design patterns are similar and are defined as "time-tested solutions to recurring design problems" or thats the first definition I got from google!!

2. Where are they used in s/w development?

Yes the terminology is "software oriented" but I feel could be used in other fields too.

3. are they only applicable only on J2EE applications?

The are applicable in any language and they started out with the gang of four patterns book which has c++ examples.

4. are they just framworks sort of things (Completely theoretical) OR implementd using some interfaces and abstract classes?

Oh they are a bit abstract but are implementable.

5. Is it required to use them?

No its not a requirement that you use them, but if you are a good architect you would consider the option whether this common solution solves the problem.
[ July 27, 2006: Message edited by: Rahul Mahindrakar ]
 
reply
    Bookmark Topic Watch Topic
  • New Topic