What is the best file format for configuration file?

Like A Duck@programming.dev to Technology@lemmy.ml – 33 points –

cross-posted from: https://programming.dev/post/1743099

.yaml, .toml, etc?

45

You are viewing a single comment

Thie essentially boikls down to "quote yur shit". Yes, it can be frustrating if a language superficially allows you to use unqoted strings with the promise that it will inteligently interprets that. It's like parentheses in arithmetics. If you are not sure or if you are not competent in a language enough to predict the order of operations, use parentheses. The same with strings and quotes in yaml.

... or just use another tool where you don't even have to think about this problem.

I get that JSON is intuitive and a huge improvement over XML, but I still find it verbose.