Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C++ > design patterns - Maze examples

Reply
Thread Tools

design patterns - Maze examples

 
 
yb
Guest
Posts: n/a
 
      12-09-2005
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.

 
Reply With Quote
 
 
 
 
Victor Bazarov
Guest
Posts: n/a
 
      12-09-2005
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.
 
Reply With Quote
 
 
 
 
roberts.noah@gmail.com
Guest
Posts: n/a
 
      12-09-2005

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.

 
Reply With Quote
 
Victor Bazarov
Guest
Posts: n/a
 
      12-09-2005
wrote:
> [..]
> There is also a general OO group somewhere but I forget its name.
>


comp.object ?
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Has anybody here read Design Patterns Explained: A New Perspective on Object-Oriented Design John Java 0 06-01-2007 02:45 PM
Design Pattern Relationship Diagram - Design Patterns - Gang of Four Tim Smith C++ 2 12-15-2004 05:22 PM
where to find good patterns and sources of patterns (was Re: singletons) crichmon C++ 4 07-07-2004 10:02 PM
Lost in "Date" maze Tim Slattery Java 7 01-19-2004 01:51 PM
C++ Maze Program Roger Douglass C++ 2 07-02-2003 05:37 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57