this post was submitted on 24 Feb 2026
591 points (98.0% liked)

Programmer Humor

30013 readers
1389 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
[–] PieMePlenty@lemmy.world 10 points 1 day ago (1 children)

No way. You're telling me I can just write json instead?

[–] Jayjader@jlai.lu 12 points 1 day ago* (last edited 1 day ago) (1 children)

Yup! YAML is defined as a "strict superset" of JSON (or at least, it was the last time I checked).

It's a lot like markdown and HTML; when you want to write something deeply structured and somewhat complex you can always drop back/down to the format with explicit closing delimiters and it just works™.

[–] theterrasque@infosec.pub 7 points 23 hours ago (1 children)

I found out the hard way this is not entirely correct, as a user found a valid json that yaml parsers didn't handle. IIRC it was some exotic whitespace issue

[–] floquant@lemmy.dbzer0.com 6 points 21 hours ago

Yes, in true YAML fashion, there are some edge cases where things act weird but are technically correct.