design patterns - Maze examples

Discussion in 'C++' started by yb, Dec 9, 2005.

  1. yb

    yb Guest

    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.
    yb, Dec 9, 2005
    #1
    1. Advertising

  2. 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.
    Victor Bazarov, Dec 9, 2005
    #2
    1. Advertising

  3. yb

    Guest

    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, 2005
    #3
  4. wrote:
    > [..]
    > There is also a general OO group somewhere but I forget its name.
    >


    comp.object ?
    Victor Bazarov, Dec 9, 2005
    #4
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Tim Slattery

    Lost in "Date" maze

    Tim Slattery, Jan 16, 2004, in forum: Java
    Replies:
    7
    Views:
    1,096
    Thomas Schodt
    Jan 19, 2004
  2. Roger Douglass

    C++ Maze Program

    Roger Douglass, Jun 29, 2003, in forum: C++
    Replies:
    2
    Views:
    19,800
    marko djogatovic
    Jul 2, 2003
  3. crichmon
    Replies:
    4
    Views:
    483
    Mabden
    Jul 7, 2004
  4. Tim Smith
    Replies:
    2
    Views:
    854
    Tim Smith
    Dec 15, 2004
  5. John
    Replies:
    0
    Views:
    593
Loading...

Share This Page