Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: OO Design question: configuration

by wjw (Curate)
on May 19, 2007 at 16:33 UTC ( #616335=note: print w/ replies, xml ) Need Help??


in reply to OO Design question: configuration

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


Comment on Re: OO Design question: configuration
Re^2: OO Design question: configuration
by spurperl (Priest) on May 19, 2007 at 16:44 UTC
    It's good to know that I am not the only one to have run into this problem. However, I want to emphasize that this is a generic OO, non Perl-centric question. It is certainly applicable to all languages.
      I understand your point spurperl. I just happen to program in Perl exclusively which is why I sort of tacked that Perl centric part on. I also have no CS training in my background, which makes me a slow learner. :-) Thanks for the original question.
      • ...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
Re^2: OO Design question: configuration
by naikonta (Curate) on May 20, 2007 at 01:57 UTC
    Is there a good OO Design book that is Perl centric? One that has a number of examples?
    No one ever told you about Object Oriented Perl by Damian Conway? I wonder no one in this thread did so.

    Open source softwares? Share and enjoy. Make profit from them if you can. Yet, share and enjoy!

      Thanks for the pointer naikonta... :-)
      • ...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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://616335]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (12)
As of 2014-12-22 16:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (121 votes), past polls