There is no "true and unique" way to do it, it all depends on so many different factors.
Personally, I am in favour of using an external configuration file (I really like YAML) in case there is some configuring to be done and this configuration changes from time to time or place to place. Also it is less "risky" to give users access to the configuration file rather than allowing them to edit the module or script directly.
CountZero
A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James
My blog: Imperial DeltronicsIn reply to Re: Please suggest the best way .ini or pm
by CountZero
in thread Please suggest the best way .ini or pm
by bhushanQA
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |