this post was submitted on 12 Nov 2023
1054 points (97.6% liked)

Programmer Humor

19512 readers
320 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 1 year ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] dan@upvote.au 28 points 1 year ago* (last edited 1 year ago) (1 children)

I agree that YAML is painful and it really seems like it's had a lot of feature creep.

JSON is painful in its own way too, though. There's a lot of syntax noise from things like braces, quotation marks, etc, so it's easy to make a mistake. Regular JSON doesn't allow trailing commas.

YAML tried to solve some of that, and did succeed in some ways, but introduced its own issues.

TOML seems great to me, but maybe it has its own issues. TOML actually has defined data formats for things like dates (both offset and local) and times, which is missing from both JSON and YAML so every app ends up doing it its own way.

[–] XTornado@lemmy.ml 11 points 1 year ago (1 children)

One big thing of JSON I hate is that sometimes is used for config files or similar and it doesn't supports comments which sucks.

[–] rambaroo@lemmy.world 7 points 1 year ago* (last edited 1 year ago)

JSONC does support comments but it wouldn't be interoperable with anything expecting pure JSON. But still useful for local configs.