Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Design patterns
Message
From
14/01/2002 06:47:21
 
 
To
14/01/2002 05:46:52
Martin Van Krieken
Capgemini Nederland Bv
Utrecht, Netherlands
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Title:
Miscellaneous
Thread ID:
00604191
Message ID:
00604200
Views:
32
>Hello,
>
>In our company we are learning desing patterns. Every week we discuss a new pattern from the book of Gamma et al.
>Last week we were discussing the bridge pattern, which is rather simple, but the discussion turned towords the differences with the strategy pattern. We think the two are very much alike. Why are there two different patterns than?
>
>Any ideas?
>
>TIA,
>
>Martin van Krieken

Hi Martin

Actually you will find that most design patterns either use, or are based on, the bridge. It is probably the most fundamental pattern. However, what really matters in the context of a pattern is the "Intent".

You are correct in noting that the result of implementing a strategy pattern is actually a bridge. However, a Strategy is not static; the idea is that different objects can be used at one side of the bridge depending on circumstances. So the intent of the two patterns is quite different.
----
Regards
Andy Kramek
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform