▲ 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?
[–] SorteKanin@feddit.dk 13 points 3 years ago (2 children) Just read this https://ruudvanasseldonk.com/2023/01/11/the-yaml-document-from-hell permalink fedilink source parent hideshow 4 child comments replies: [–] JonnyRobbie@lemmy.world 4 points 3 years ago (1 child) 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. permalink fedilink source parent hideshow 2 child comments replies: [–] SorteKanin@feddit.dk -2 points 3 years ago (1 child) ... or just use another tool where you don't even have to think about this problem. permalink fedilink source parent hideshow 2 child comments replies: [–] richieadler@lemmy.myserv.one 1 point 3 years ago I get that JSON is intuitive and a huge improvement over XML, but I still find it verbose. permalink fedilink source parent [–] richieadler@lemmy.myserv.one 4 points 3 years ago Very educational. permalink fedilink source parent
[–] JonnyRobbie@lemmy.world 4 points 3 years ago (1 child) 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. permalink fedilink source parent hideshow 2 child comments replies: [–] SorteKanin@feddit.dk -2 points 3 years ago (1 child) ... or just use another tool where you don't even have to think about this problem. permalink fedilink source parent hideshow 2 child comments replies: [–] richieadler@lemmy.myserv.one 1 point 3 years ago I get that JSON is intuitive and a huge improvement over XML, but I still find it verbose. permalink fedilink source parent
[–] SorteKanin@feddit.dk -2 points 3 years ago (1 child) ... or just use another tool where you don't even have to think about this problem. permalink fedilink source parent hideshow 2 child comments replies: [–] richieadler@lemmy.myserv.one 1 point 3 years ago I get that JSON is intuitive and a huge improvement over XML, but I still find it verbose. permalink fedilink source parent
[–] richieadler@lemmy.myserv.one 1 point 3 years ago I get that JSON is intuitive and a huge improvement over XML, but I still find it verbose. permalink fedilink source parent
[–] richieadler@lemmy.myserv.one 4 points 3 years ago Very educational. permalink fedilink source parent