Imagine a software system where you have like 100 parameters, each of which is sensible to change (in my case this is a reasearch system for machine learning). The obvious solution is to store all parameters in a config file, so that the system is easy to handle and see through.
Whis approach is better, what are benefits and disadvantages:
- a) load the config file at the entry point of the program and pass down a big collection of config variables through each method in the code
- b) load the config file at the entry point of the program and pass down the relevant collection of config variables through each method in the code
- c) load the config variables directly where they are needed
- d) load the config and make it global
I'm open for any suggestion or examples of a particular implementation. At the moment I'm experimenting with nested config variables, each nested object storing config of different modules in the code.