By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,778 Members | 1,890 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,778 IT Pros & Developers. It's quick & easy.

design patterns - Maze examples

P: n/a
yb
Hi,

I just started reading design patterns and looking at the Lexi example.
I'm very new to this so please bear with me.

I understand the Decorator pattern, but a bit confused by the Maze
example used for creational patterns. Is this example a bit contrived?
I would have thought a decorator pattern would make more sense instead
of deriving mazes with different attributes.

Anyway, just seemed to me the example is not good practice but just
made to illustrate the point on how to apply creational patterns??
hope my question makes sense.

Dec 9 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
yb wrote:
I just started reading design patterns and looking at the Lexi example.
I'm very new to this so please bear with me.

I understand the Decorator pattern, but a bit confused by the Maze
example used for creational patterns. Is this example a bit contrived?
I would have thought a decorator pattern would make more sense instead
of deriving mazes with different attributes.

Anyway, just seemed to me the example is not good practice but just
made to illustrate the point on how to apply creational patterns??
hope my question makes sense.


Is there a C++ _language_ question here somewhere? Please consider
'comp.software.patterns' for your general patterns questions.
Dec 9 '05 #2

P: n/a

Victor Bazarov wrote:
yb wrote:
I just started reading design patterns and looking at the Lexi example.
I'm very new to this so please bear with me.

I understand the Decorator pattern, but a bit confused by the Maze
example used for creational patterns. Is this example a bit contrived?
I would have thought a decorator pattern would make more sense instead
of deriving mazes with different attributes.

Anyway, just seemed to me the example is not good practice but just
made to illustrate the point on how to apply creational patterns??
hope my question makes sense.


Is there a C++ _language_ question here somewhere? Please consider
'comp.software.patterns' for your general patterns questions.


There is also a general OO group somewhere but I forget its name.

Dec 9 '05 #3

P: n/a
ro**********@gmail.com wrote:
[..]
There is also a general OO group somewhere but I forget its name.


comp.object ?
Dec 9 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.