this post was submitted on 15 Aug 2023
33 points (94.6% liked)

Technology

34889 readers
511 users here now

This is the official technology community of Lemmy.ml for all news related to creation and use of technology, and to facilitate civil, meaningful discussion around it.


Ask in DM before posting product reviews or ads. All such posts otherwise are subject to removal.


Rules:

1: All Lemmy rules apply

2: Do not post low effort posts

3: NEVER post naziped*gore stuff

4: Always post article URLs or their archived version URLs as sources, NOT screenshots. Help the blind users.

5: personal rants of Big Tech CEOs like Elon Musk are unwelcome (does not include posts about their companies affecting wide range of people)

6: no advertisement posts unless verified as legitimate and non-exploitative/non-consumerist

7: crypto related posts, unless essential, are disallowed

founded 5 years ago
MODERATORS
 

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

.yaml, .toml, etc?

you are viewing a single comment's thread
view the rest of the comments
[–] SorteKanin@feddit.dk 9 points 1 year ago (1 children)

Definitely not yaml. It's spec is horrible.

Toml is pretty nice though.

[–] richieadler@lemmy.myserv.one 11 points 1 year ago (1 children)

I hate table definitions in TOML with a passion.

I like YAML. I guess that's because I don't need to build parsers for it. What's your worst complain about it?

[–] SorteKanin@feddit.dk 13 points 1 year ago (2 children)
[–] richieadler@lemmy.myserv.one 4 points 1 year ago

Very educational.

[–] JonnyRobbie@lemmy.world 4 points 1 year ago (1 children)

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.

[–] SorteKanin@feddit.dk -2 points 1 year ago (1 children)

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

[–] richieadler@lemmy.myserv.one 1 points 1 year ago

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