Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Re: Coding Perl With Style

by Dogma (Pilgrim)
on Nov 27, 2001 at 07:13 UTC ( [id://127710]=note: print w/replies, xml ) Need Help??


in reply to Re: Coding Perl With Style
in thread Coding Perl With Style

Actualy config.pm isn't the real name. It's Yaps::Config.pm so we're on the same page there. So your suggesting using Config.pm as a base class and having all classes inherit from it. Like a smalltalk-90 oo tree right? Thanks for the answer about inlining.

Replies are listed 'Best First'.
Re: Re: Re: Coding Perl With Style
by wog (Curate) on Nov 27, 2001 at 07:21 UTC
    I would personally think you want a "has-a" relationship. "Configuration" info is shared by many (instances of) classes; it is not something that each of the instances should maintain an independent copy of.

    (update: Nor do I think you should have one copy of it be held statically by a base class, of course. I would prefer to leave room to maintaining to independent sets of this data in one application, if need-be.)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (6)
As of 2024-04-18 21:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found