Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^3: Configuration Best Practices for Web Apps

by perrin (Chancellor)
on Jan 30, 2006 at 21:13 UTC ( #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
Node Status?
node history
Node Type: note [id://526566]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (3)
As of 2019-12-08 09:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?