this post was submitted on 08 Sep 2024
1217 points (98.3% liked)

Programmer Humor

32373 readers
554 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] Gremour@lemmy.world 1 points 1 month ago (2 children)

YAML for human-written files, JSON for back-to-front and protobuf for back-to-back. XML is an abomination.

[–] it_depends_man@lemmy.world 2 points 1 month ago

Having an easy on the eyes markdown that is also easy to parse would be cool.

But YAML does these things:

https://ruudvanasseldonk.com/2023/01/11/the-yaml-document-from-hell

which are not excusable, for any reason.

[–] renzev@lemmy.world 2 points 1 month ago

YAML is good for files that have a very flexible structure or need to define a series of steps. Like github workflows or docker-compose files. For traditional config files with a more or less fixed structure, TOML is better I think