you are viewing a single comment's thread
view the rest of the comments
[–] 99 points 7 months ago (21 children)

If yaml didn’t have anchors and 8 different white space formats, it’d be a great replacement for this kind of thing.

But yaml is a mess, and you’d think you could parse it easily, but you can’t.

  • source
  • hideshow 21 child comments
  • [–] 62 points 7 months ago (4 children)

    YAML is redeemed by one thing only:

    All JSON is valid YAML.

  • source
  • parent
  • hideshow 4 child comments
  • [–] 12 points 7 months ago (3 children)

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

  • source
  • parent
  • hideshow 3 child comments
  • [–] 14 points 7 months ago* (2 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™.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 38 points 7 months ago (3 children)

    As someone who works with YAML regularly:

    Fuck YAML.

  • source
  • parent
  • hideshow 3 child comments
  • [–] 1 point 7 months ago (1 child)

    Nah, yaml isn't great by virtue of itself but with what it competes with. I far, far prefer it to any other BS. Json is garbage for human creation and obviously toml due to above. XML... Obviously just for machines.

    Again, only good because of its competition.

  • source
  • parent
  • hideshow 1 child comment
  • [–] 18 points 7 months ago (4 children)

    I have a fundamental disdain for formats with restrictive white space definitions (I’m looking too at you Python)

  • source
  • parent
  • hideshow 4 child comments
  • [–] 17 points 7 months ago (3 children)

    I’ve never had this issue with Python, but makefile has given me plenty of whitespace issues.

  • source
  • parent
  • hideshow 3 child comments
  • [–] 3 points 7 months ago (3 children)

    I'm a fan of NestedText. It's no panacea but I'd argue it's the most well-considered and useful file format for structured data in plain text.

  • source
  • parent
  • hideshow 3 child comments