Design Patterns for this week: Adapter, Facade, Composite and Bridge (Interface Patterns)

One of my goals this year (I have several that I'll be blogging about) is to "Learn Design Patterns better". The idea is a good goal, but the wording sucks for a goal right? I mean how will I know if I have reached it? Well I have decided to change the goal to be "Be able to teach design patterns to a non technical person". Now this wording is a little better as long as I have a non technical person available ;) - which I do. So now I need to learn design patterns (going to start with the GoF patterns first) well enough to not only relate it to code, but relate it to real life....

My approach is going to be the following:

  1. Read the chapters (Design Patterns C#)
  2. Work with some code that I come up with (not examples in book)
  3. Search for other information on the web
  4. Come up with a way to teach the patterns to my test subject

This week's patterns are the Interface Patterns
Pattern to use: If you inted to:
Adapter Adapt a class's interface to match the interface a client expects
Facade Provide a simple interface into a collection of classes
Composite Define an interface that applies to individual objects and groups of objects
Bridge Decouple an abstraction from its implementation so that the two can vary independently
Seven John Metsker, Deisgn Patterns In C# Page 17

posted on Sunday, January 30, 2005 5:44 AM

Feedback

# re: Design Patterns for this week: Adapter, Facade, Composite and Bridge (Interface Patterns)

Try reading "Head First Design Pattersn - Freeman and Freeman". It is awesome...and considering your final frontier of teaching it to a non-tech subject....nothing better than this book.
1/30/2005 1:47 AM | Sashidhar Kokku

# re: Design Patterns for this week: Adapter, Facade, Composite and Bridge (Interface Patterns)

Excellent goal. Steve's book is good because there is no translation required from Java to C#. Note that Steve is my coworker, so there may be some bias. :)

Also make sure to check out this site:
http://www.dofactory.com/Patterns/Patterns.aspx
1/31/2005 4:18 AM | Darrell

# re: Design Patterns for this week: Adapter, Facade, Composite and Bridge (Interface Patterns)

Problem with Design Pattern
8/21/2006 9:24 PM | Nary

# re: Design Patterns for this week: Adapter, Facade, Composite and Bridge (Interface Patterns)

Problem with Design pattern
8/21/2006 9:24 PM | Nary

Post Comment

Title  
Name  
Url
Comment   
Please enter the following code into the box below to stop spammers

  
Enter Code Here *