Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^3: Configuration Best Practices for Web Apps

by perrin (Chancellor)
on Jan 30, 2006 at 21:13 UTC ( [id://526566]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Configuration Best Practices for Web Apps
in thread Configuration Best Practices for Web Apps

I would use a class method rather than a package variable. No need to expose that.

For handling the application scoped and machine scoped configs, I would make it possible to access both through a single object. You might make an application config class that subclasses the machine config class, or you might just have a class that always reads the machine config file in addition to the app config file and merges them internally (i.e. there is no API for accessing the machine config outside of an application context).

  • Comment on Re^3: Configuration Best Practices for Web Apps

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (5)
As of 2024-04-20 00:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found