This week's book giveaway is in the Agile and Other Processes forum.
We're giving away four copies of The Little Book of Impediments (e-book only) and have Tom Perry on-line!
See this thread for details.
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

Difference between an architecture and a design pattern??

 
Neo Phesus
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Folks,

I know its too early a question to be asked even before starting my preparation for SCWCD, but I had this question in my mind right from the time I started working with my first web application.

Whats are the kind of difference between an architecture and a design pattern?? Or in simple terms how do we define them? And, as usual could you please provide some real world example for these two?

Thanks for your time

Regards,
Neo
 
Hendy Setyo Mulyo
Ranch Hand
Posts: 219
Firefox Browser Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
- Design pattern: a general repeatable solution to a commonly occurring problem in software design (architecture)
- Architecture: the structures which comprise of elements and each elements have relationships between them. The problem that occurs in a relationship between elements commonly can be solved using design pattern.
 
Neo Phesus
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Hendy,

Thanks for the response.

So could we conclude like the following,

Architecture, is a design of an software or an application or a system as a skeletal representation. With all those UML stuff...

Framework, is built on an architecture or may be independant of an architecture as well, which contains re-usable components and set of norms or protocols for usage of the re-usable components.

Design Patterns, are solutions for recurring software problems, could be best practices also, design patterns could be implemented in a framework as well as an architecture.

Please correct me if I am wrong Thanks for bearing with me.

Thank you
 
Hendy Setyo Mulyo
Ranch Hand
Posts: 219
Firefox Browser Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes. You are correct. But perhaps, anyone has different opinion?
 
Neo Phesus
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks again Hendy
 
Raghu Kashyap
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would like to put it this way

Design patterns help us to build/architect the system/application. It gives you solutions to common problems/designs to better architect the system.
 
Tridib Samanta
Ranch Hand
Posts: 128
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can extend an architecture, not a design pattern.
[ April 16, 2007: Message edited by: Tridib Samanta ]
 
Neo Phesus
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Raghu and Tridib
 
jan ter avest
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey Neo, where are you from?
Like you, I also just passed SCJP 1.5 (talk about relief!) and already got the SCWCD book to go straight to the next level.

In my opinion architecture is very broad and is about vision; an architect uses design patterns to avoid common pitfalls when designing software and builds with an eye on future developments. Atleast that's how I understand it.

Also, an architect doesn't necessarily have in depth technical knowledge of every element of an application, it's more of a general overview.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic