• 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

Difference between an architecture and a design pattern??

 
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 219
Firefox Browser Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks again Hendy
 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 128
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Raghu and Tridib
 
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Quick! Before anybody notices! Cover it up with this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic