3 ms·
The article is not talking about config files, which is one of the few valid reasons to do this, as with a config file you're almost always going to just want t
by mattmanser 10y ago
The article is not talking about config files, which is one of the few valid reasons to do this, as with a config file you're almost always going to just want the whole thing once at initialization.
And even then, only if there's loads of config values. If you've only got 5 or 10, that solution is bad.
The article is implicitly talking about business objects.
- tigershark 10y agoI never mentioned config files. The article explicitly states: "A good example of this optional nature of data is user preferences – you only really need to store the settings that differ from the default values." User settings is a good candidate for a configuration object in the configuration store that I built. The primary id will be the user id, the secondary id the machine name (if the system needs to support different configurations on different machines) and the rest will be a CLOB containing the JSON serialized user configuration.