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 : RE : [gang-of-4-patterns] Strategy Pattern vs. Bridge Pa ttern
- Date: Thu, 6 Nov 2003 17:06:34 -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>
-----Original Message-----
From: Mikal Ziane
[mailto:Mikal.Ziane AT lip6.fr]
Sent: Thursday, November 06, 2003 2:54 PM
To:
gang-of-4-patterns AT cs.uiuc.edu
Subject: RE : RE : [gang-of-4-patterns] Strategy Pattern vs. Bridge
Pattern
Ray,
You would not use Bridge to dynamically select or change the data
representation of an abstraction A even if A itself does not change ?
[rye]
I don't quite understand what you are talking about here. Why could not
abstraction be changed dynamically? Even the implementor in bridge can be
changed dynamically. That is the run-time behavior has nothing to do with
the class structure.
Ok if the data changes the algorithm probably have to change to but maybe
this is not the focus so that calling this Strategy might be awkward, right
?
[rye] Let's say we have only one concrete instance of abstraction, so there
is no need to have the abstraction, then I would think this pattern
degenerates to strategy/state pattern, since the problem is simplified from
two-dimension to one.
Also, what about Coplien's String/StringRep example of his
Letter/envelope idiom ? Does the abstraction, namely String, change ?
[rye] I am not quite familiar with idiom.
Cheers,
Ray
_______________________________________________
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 : RE : [gang-of-4-patterns] Strategy Pattern vs. Bridge Pa ttern, Ray Ye, 11/06/2003
Archive powered by MHonArc 2.6.16.