this post was submitted on 24 Feb 2026
573 points (98.2% liked)

Programmer Humor

30013 readers
1964 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 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] Michal@programming.dev 40 points 1 day ago (2 children)

I like this. I also like yaml, I've had very few issues with it and it's nicer to work with than json.

Json's lack of support for trailing commas and comments makes it very annoying for everyday use.

[–] backgroundcow@lemmy.world 1 points 4 hours ago (1 children)

Just the other day I had a list show up as ["a", "b", "c", "d", "e", false, "g", "h", "i"].

The issue was that, without me being overly aware of it, the data was going through a data -> yaml -> data step.

Yes, the data -> yaml filter was broken for not putting general strings in quotes. But IMO the yaml design invites these odd "rare" bugs.

I used to like yaml, but was happy to see Toml taking the niche of human-readable-JSON, but felt the format for nested key-value was a weird choice. However, I've always felt we could just have extended JSON a bit (allow line breaks, comments, if the outermost data type is an object, the curly brackets may be omitted).

[–] firelizzard@programming.dev 1 points 3 hours ago* (last edited 3 hours ago)

Using YAML as an intermediate format between steps of a process is a mistake. I love YAML for configuration but I’d never use it for machine-to-machine anything. If the tool you’re feeding data to requires YAML as input, just give it JSON. All JSON is valid YAML.

Edit: I realize you weren’t the one who made that decision. I’m saying the problem isn’t YAML, the problem is someone using YAML inappropriately.

[–] Senal@programming.dev 50 points 1 day ago (4 children)

Significant white-space is bullshit and i will die on this hill.

[–] softwarist@programming.dev 0 points 8 hours ago (1 children)
[–] 3abas@lemmy.world 2 points 7 hours ago

Because yaml is not a programming language, and debugging why your whatever you're configuring isn't working correctly can be a nightmare. It doesn't tell you you missed an indent on a block, it just assumes it should be there and changes the meaning.

Braces are visually clear.

[–] BlueKey@fedia.io 16 points 1 day ago (1 children)

Is there space left on the hill? I want to join you.

[–] Michal@programming.dev 21 points 1 day ago (2 children)

I hear there's significant space left

[–] _stranger_@lemmy.world 1 points 13 hours ago

Their whole thing is that they don't want to care about it, so if you get to the hill and there's no space, you're SOL.

[–] squaresinger@lemmy.world 9 points 22 hours ago (1 children)

But it's only white space. That's kinda racist.

[–] Senal@programming.dev 2 points 10 hours ago

significant white space to it's classist and racist

[–] rothaine@lemmy.zip 10 points 1 day ago (1 children)

Yeah I just want JSON with optionally quoted keys, and comments.

[–] BlueKey@fedia.io 5 points 1 day ago

JSON5 my beloved

[–] laranis@lemmy.zip 3 points 1 day ago