And I’ll show you YAML

(a continuation of this post)

  • magic_lobster_party@kbin.social
    link
    fedilink
    arrow-up
    14
    ·
    edit-2
    1 year 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
      link
      fedilink
      arrow-up
      5
      ·
      1 year 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