gang-of-4-patterns AT lists.siebelschool.illinois.edu
Subject: Design Patterns discussion
List archive
- From: Ray Ye <rayye AT Catena.com>
- To: "'Mikal Ziane'" <Mikal.Ziane AT lip6.fr>, gang-of-4-patterns AT cs.uiuc.edu
- Subject: RE: RE : [gang-of-4-patterns] Strategy Pattern vs. Bridge Pattern
- Date: Thu, 6 Nov 2003 14:01:51 -0500
- List-archive: <http://mail.cs.uiuc.edu/pipermail/gang-of-4-patterns/>
- List-id: Design Patterns discussion <gang-of-4-patterns.cs.uiuc.edu>
I would say strategy is a "refinement" of bridge, where it only concerns
about the varied implementations of strategy interface.
Again, the intents of these two patterns are very different, particularly,
strategy is used to handle one-dimension change (different strategies),
bridge is used to handle two-dimension change (both abstraction and
implementor)(IMO)
Cheers,
Ray
-----Original Message-----
From: Mikal Ziane
[mailto:Mikal.Ziane AT lip6.fr]
Sent: Thursday, November 06, 2003 11:27 AM
To:
gang-of-4-patterns AT cs.uiuc.edu
Subject: RE : [gang-of-4-patterns] Strategy Pattern vs. Bridge Pattern
Hi Ray and Chris,
I wonder if Chris' question is not : can Bridge be seen as a refinement
of Strategy in which you add subclasses to Strategy's Context ?
In Ray's modem example the interfaces would be :
ModemType (Context) and ModemManufacturer (Strategy).
What do you think ?
_______________________________________________
gang-of-4-patterns mailing list
gang-of-4-patterns AT cs.uiuc.edu
http://mail.cs.uiuc.edu/mailman/listinfo/gang-of-4-patterns
- RE: RE : [gang-of-4-patterns] Strategy Pattern vs. Bridge Pattern, Ray Ye, 11/06/2003
- RE : RE : [gang-of-4-patterns] Strategy Pattern vs. Bridge Pattern, Mikal Ziane, 11/06/2003
- Re: RE : RE : [gang-of-4-patterns] Strategy Pattern vs. Bridge Pattern, Wayne Cannon, 11/06/2003
- Re: RE : RE : [gang-of-4-patterns] Strategy Pattern vs. Bridge Pattern, Mikal Ziane, 11/07/2003
- Re: RE : RE : [gang-of-4-patterns] Strategy Pattern vs. Bridge Pattern, Wayne Cannon, 11/06/2003
- Re: RE : [gang-of-4-patterns] Strategy Pattern vs. Bridge Pattern, Wayne Cannon, 11/06/2003
- RE : RE : [gang-of-4-patterns] Strategy Pattern vs. Bridge Pattern, Mikal Ziane, 11/06/2003
Archive powered by MHonArc 2.6.16.