And I’ll show you YAML

(a continuation of this post)

8 points

Json. Your move, Joker.

permalink
report
reply
7 points

puts the json in the yaml parser

Your move, foolish mortal

permalink
report
parent
reply
5 points

For those uninitiated, every JSON is a valid YAML, since YAML is just a superset of JSON.

permalink
report
parent
reply
26 points
permalink
report
reply
1 point

I didn’t even know there was a difference.

permalink
report
reply
7 points

So much json here. All wrong, it’s csv

permalink
report
reply
8 points

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

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

permalink
report
reply
2 points

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.

permalink
report
parent
reply
5 points

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.

permalink
report
parent
reply
2 points

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.

permalink
report
parent
reply

Programmer Humor

!programmer_humor@programming.dev

Create post

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

Community stats

  • 1

    Monthly active users

  • 256

    Posts

  • 842

    Comments