Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
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":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (3)
As of 2022-08-09 22:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?