Like A Duck@programming.dev to Technology@lemmy.ml · hace 1 añoWhat is the best file format for configuration file?message-squaremessage-square46fedilinkarrow-up135arrow-down12file-text
arrow-up133arrow-down1message-squareWhat is the best file format for configuration file?Like A Duck@programming.dev to Technology@lemmy.ml · hace 1 añomessage-square46fedilinkfile-text
minus-squareargv_minus_one@beehaw.orglinkfedilinkarrow-up11·hace 1 añoJSON 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.
minus-squareSir_Simon_Spamalot@lemmy.my.idlinkfedilinkarrow-up1·hace 1 añoHow is it syntatic minefield? I find it at least more reasonable than XML. The comment feature is nice to have.
minus-squarenubbucket@beehaw.orglinkfedilinkarrow-up3·hace 1 añoyaml 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
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.
How is it syntatic minefield? I find it at least more reasonable than XML. The comment feature is nice to have.
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