107

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
[-] synae@lemmy.sdf.org 25 points 11 months ago

For serializing? I'd probably just go with json.

For content meant to be written or edited by humans? YAML all day baby

[-] Andy@programming.dev 5 points 11 months ago

Ever tried NestedText? It's like basic YAML but everything is a string (types are up to the code that ingests it), and you never ever need to escape a character.

[-] synae@lemmy.sdf.org 9 points 11 months ago

I've got too many consumers that I don't control which dictate their input formats. And to be quite honest, "types are up to the code that ingests it" sounds like a huge negative to me.

[-] Andy@programming.dev 3 points 11 months ago

Ah, well I love that policy (types being in code, not configs). FWIW I sometimes use it as a hand-edited document, with a small type-specifying file, to generate json/yaml/toml for other programs to load.

this post was submitted on 13 Nov 2023
107 points (82.4% liked)

Programmer Humor

19488 readers
196 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