Fellow Monks,

In working through Damian Conway's excellent "Object Oriented Perl" I've started thinking of rewriting some of the cgi applications I've coded or modified using objects. It would be as much a learning exercise as anything else. This has raised some design issues, however. I'm not asking for answers, but rather a source where I might find them myself.

In thinking about how I might code a shopping cart, for example, I immediately faced questions regarding the proper level of abstraction at which to design my various objects. I might have a cart object and a customer object (among others), for example. But what about a customer's order? Should that be a seperate object or is it better handled through a set of methods belonging to the cart object?

These are the kind of questions that require knowledge I don't yet have.

I would be greatful if someone could recommend a good book or other resource on OO design that would be applicable to web applications.

In reply to OO Design Reference? by sz

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.