What is the best file format for configuration file?
What is the best file format for configuration file?
cross-posted from: https://programming.dev/post/1743099
.yaml, .toml, etc?
You're viewing a single thread.
argv_minus_one @beehaw.org JSON is overly verbose and doesn't allow comments. Please do not use it for anything that humans frequently need to read or write.
YAML is a syntactic minefield. Please do not use it for anything ever.
11 0 ReplySir_Simon_Spamalot @lemmy.my.id How is it syntatic minefield? I find it at least more reasonable than XML. The comment feature is nice to have.
1 0 Replynubbucket @beehaw.org yaml is susceptible to things like the Norway problem: https://www.bram.us/2022/01/11/yaml-the-norway-problem/
There's also a lot of stuff that can go wrong with deserialisation that make it a tricky dependency for security purposes. I like how yaml looks and it's obviously much better than XML, but it had those potential problems
3 0 Reply