this post was submitted on 12 Nov 2023
1054 points (97.6% liked)
Programmer Humor
19551 readers
1087 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
- Keep content in english
- No advertisements
- Posts must be related to programming or programmer topics
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
It isn't "bad", as it does have a purpose. It's just fucking annoying to work with.
https://docs.platform.sh/learn/overview/yaml/what-is-yaml.html
How's it annoying? It's easier to edit by hand than json as it allows for comments and there's no trailing comma errors. I prefer it any day over json.
The fact that it allows comments is really, really handy. I used to be a JSON advocate until I realized this one useful piece of info.
Yeah, such a simple, but still killer feature. Really sad that JSON doesn't support them.
I wonder how you'd even implement that. Like maybe {! At the beginning.
Most comment-aware JSON parsers I've seen just use standard // to delineate comment lines.
They make sense.