Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Comment on

( #3333=superdoc: print w/ replies, xml ) Need Help??
Being a long time procedural programmer just breaking into the OO approach to things, I echo spurperl's design query. The question is stated very clearly.

I have played around with the idea of using inheritance of the config object by the methods objects, but as mentioned, what happens when there is more than one config object? I would think that the method objects need be told which config object they are operating with, which leads me to think that one might just as well hand in a reference to the conifg object to each method object.

Conversely, perhaps the config object should inherit from all of the method objects?

The Advanced Perl Programming book talks about this in a couple of chapters. However, it leaves me with my head spinning. Is there a good OO Design book that is Perl centric? One that has a number of examples? I confess that I have not had time yet to do an exhaustive search for such a guide. The tutorials that are pointed to here are very helpfull, but a Perl centric (or better yet, exclusive) OO design book would be very nice to have on my shelf.

I look forward to the responses to the original posts. Good luck spurperl

  • ...the majority is always wrong, and always the last to know about it...
  • The Spice must flow...
  • ..by my will, and by will alone.. I set my mind in motion

In reply to Re: OO Design question: configuration by wjw
in thread OO Design question: configuration by spurperl

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!
  • 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, 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, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • Outside of code tags, you may need to use entities for some characters:
            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.
  • Log In?
    Username:
    Password:

    What's my password?
    Create A New User
    Chatterbox?
    and the web crawler heard nothing...

    How do I use this? | Other CB clients
    Other Users?
    Others making s'mores by the fire in the courtyard of the Monastery: (8)
    As of 2014-10-26 08:11 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      For retirement, I am banking on:










      Results (152 votes), past polls