43
What is the best file format for configuration file?
(programming.dev)
A community for discussion amongst professional software developers.
Posts should be relevant to those well into their careers.
For those looking to break into the industry, are hustling for their first job, or have just started their career and are looking for advice, check out:
Yaml for me, I really like it. And the fact that every valid JSON is also a valid YAML is nice.
YAML here as well.
Configuration many levels deep gets so much harder for me to read and write in JSON with all [], {} and ""
Also the lack of comments... And YAML still is more used in software I'm using than JSON5, so I'd rather skip yet another format/library to keep track of.
Please do not use YAML. It's a syntactic minefield. It also doesn't allow tab indentation, which is supremely irritating.
As I said, I like it the most, so I will use it. I like its syntax (except for yes and no for booleans, but nothing's perfect). I don't care much for tabs vs spaces, I use tab in my IDE and whatever it does, it does.