News for hackers. Stuff that matters.
Re:Configs suck? Try a real programming language by dhagz on Monday April 06, 2020 @08:20AM (#22793046)
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.
Re:Configs suck? Try a real programming language by dkersten on Tuesday April 07, 2020 @09:21AM (#22802938)
I’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.
Re:Configs suck? Try a real programming language by cogman10 on Monday April 06, 2020 @08:34AM (#22793134)
The 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.