Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Should you use a module to hold configuration items?

by sundialsvc4 (Abbot)
on Sep 19, 2010 at 16:21 UTC ( [id://860717]=note: print w/replies, xml ) Need Help??


in reply to Should you use a module to hold configuration items?

Some projects do use “executable code” to hold configuration data.   (Sometimes, the modules are programmatically generated.)   My wisdom is, “if it works now, don’t change it now.”   Pick you battles carefully, like a good triage nurse at an E.R.   You might not like the way it was done, but it does not appear to be screaming in pain...

TMTOWTDI... and only two that count:   the one that works, and the other one that also works.

  • Comment on Re: Should you use a module to hold configuration items?

Replies are listed 'Best First'.
Re^2: Should you use a module to hold configuration items?
by Anonymous Monk on Sep 20, 2010 at 14:09 UTC

    You could, cautiously, say that such a design is “elegant,” if the design that you are stuck with is that “there are a bunch of separate scripts.”   (Whether or not you think that having “there are a bunch of separate scripts” qualifies as “elegant” is beside the point.)   All of the configuration options become available with one simple use statement.   No separate parsing is required:   the .pm file is the configuration file.   If the options, once set, almost never ever change, that works.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (6)
As of 2024-04-19 12:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found