locked
Design patterns RRS feed

  • Question

  • Hello all,

    I am trying to really understand design patterns and framework design. Am not entirely new to design patterns but, am not that flexible to use them either. So would any of you provide me a reference about these two concepts. Anything is appreciated!

    Thanks
    zolyit.
    Friday, November 13, 2009 12:27 AM

Answers

  • I'd start with design patterns.  I recommend reading up on Wikipedia.  Once you understand the basic design patterns, frameworks will start to make more sense.  This Design Patterns book is the classic text, and also a good read.
    Reed Copsey, Jr. - http://reedcopsey.com
    • Marked as answer by Bsharper Wednesday, November 24, 2010 6:26 PM
    Friday, November 13, 2009 1:03 AM
  • Hi zolyita,

    Design Pattern is a catalog which describes a problem, proposes a solution and discusses its consequences. According to the GOF, design patterns are much more abstract.

    As for frameworks, they're "a set of cooperating classes that make up a reusable design for a specific class of software" (GOF). Personally, I think of frameworks as system architectures. They usually target very specific domains.

    The main differences (from the GOF):
    1. Design patterns are more abstract, compared to frameworks
    2. Design patterns are much smaller, and are often used in frameworks, but never the other way round.
    3. Design patterns are less specialised.

    Resources:

    Design Patterns : Elements of Reusable OO Software
    Pattern-Oriented Software Architecture (vol 1- 4, depending on your needs)
    Patterns of Enterprise Application Architecture (Martin Fowler)

    Hope that helps.

    regards,
    Min Chew
    • Marked as answer by Linda Liu Thursday, November 19, 2009 8:55 AM
    Friday, November 13, 2009 1:34 AM

All replies

  • I'd start with design patterns.  I recommend reading up on Wikipedia.  Once you understand the basic design patterns, frameworks will start to make more sense.  This Design Patterns book is the classic text, and also a good read.
    Reed Copsey, Jr. - http://reedcopsey.com
    • Marked as answer by Bsharper Wednesday, November 24, 2010 6:26 PM
    Friday, November 13, 2009 1:03 AM
  • Hi zolyita,

    Design Pattern is a catalog which describes a problem, proposes a solution and discusses its consequences. According to the GOF, design patterns are much more abstract.

    As for frameworks, they're "a set of cooperating classes that make up a reusable design for a specific class of software" (GOF). Personally, I think of frameworks as system architectures. They usually target very specific domains.

    The main differences (from the GOF):
    1. Design patterns are more abstract, compared to frameworks
    2. Design patterns are much smaller, and are often used in frameworks, but never the other way round.
    3. Design patterns are less specialised.

    Resources:

    Design Patterns : Elements of Reusable OO Software
    Pattern-Oriented Software Architecture (vol 1- 4, depending on your needs)
    Patterns of Enterprise Application Architecture (Martin Fowler)

    Hope that helps.

    regards,
    Min Chew
    • Marked as answer by Linda Liu Thursday, November 19, 2009 8:55 AM
    Friday, November 13, 2009 1:34 AM