▲ 33 ▼ What is the best file format for configuration file? (programming.dev) submitted 3 years ago by likeaduck@programming.dev to c/technology@lemmy.ml 46 comments fedilink hide all child comments cross-posted from: https://programming.dev/post/1743099 .yaml, .toml, etc?
[–] csolisr@communities.azkware.net 4 points 3 years ago (2 children) Agreed. YAML is a pain to edit manually, to ensure that all the tabulation is correct and the parser does not choke. JSON is passable, but you must be mindful about the brackets. XML is too verbose and duplicative. INI files are just good enough. permalink fedilink source parent hideshow 4 child comments replies: [–] sugar_in_your_tea@sh.itjust.works 5 points 3 years ago That's why I like TOML. It's basically INI, but it has more structural features if you need them. Most of the TOML files I use look just like ini files. permalink fedilink source parent [–] exu@feditown.com 3 points 3 years ago YAML is fine if you use a formatter. JSON's ok to read but a pain to write imo. INI if it's simple. permalink fedilink source parent
[–] sugar_in_your_tea@sh.itjust.works 5 points 3 years ago That's why I like TOML. It's basically INI, but it has more structural features if you need them. Most of the TOML files I use look just like ini files. permalink fedilink source parent
[–] exu@feditown.com 3 points 3 years ago YAML is fine if you use a formatter. JSON's ok to read but a pain to write imo. INI if it's simple. permalink fedilink source parent