108

And I'll show you YAML

(a continuation of this post)

you are viewing a single comment's thread
view the rest of the comments
[-] magic_lobster_party@kbin.social 14 points 7 months ago* (last edited 7 months ago)

Indenting copy pasted yaml is always a pain in the butt. Any indentation you give is likely a valid yaml. Especially bad considering indentation has a significant meaning. You have to double check back and forth to ensure nothing bad has sneaked in.

With JSON there are no such discrepancies. It’s likely the editor has figured it out for you already. If it hasn’t it’s easy to prettify the JSON yourself.

[-] interolivary@beehaw.org 5 points 7 months ago

Semantic whitespace problems can easily be literally impossible to solve automatically. One of the dumbest fucking ideas anybody ever came up with in computing and its inventor if anyone belongs in YAML Hell. As a fuckup it's not quite as bad as null, but that ain't exactly a high bar

this post was submitted on 13 Nov 2023
108 points (82.5% liked)

Programmer Humor

18250 readers
1 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