3 ms·
I really don't like JSON for configuration. I prefer TOML or YAML for config file definition. But I would also make sure my config item names are descriptive en
by dhagz 7y ago
I really don't like JSON for configuration. I prefer TOML or YAML for config file definition. But I would also make sure my config item names are descriptive enough to where I know units from the name, e.g. maxAttachmentSizeBytes. Any other comments I usually prefer to put in my code that loads the config files into my program.
- cogman10 7y agoThe other option is to pull in the one of many libs it there that can understand suffixes (or even write your own... Really not that hard). As a bonus, your config is more readable.
- dkersten 7y agoI’m a big fan of TOML. It’s not perfect, but as a configuration format, it does the job much better (imho) than the alternatives.