http://qs1969.pair.com?node_id=616335


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