There exists a peculiar amnesia in software engineering regarding XML. Mention it in most circles and you will receive knowing smiles, dismissive waves, the sort of patronizing acknowledgment reserved for technologies deemed passé. “Oh, XML,” they say, as if the very syllables carry the weight of obsolescence. “We use JSON now. Much cleaner.”

  • TunaLobster@lemmy.world
    link
    fedilink
    arrow-up
    2
    ·
    3 hours ago

    IMO, the best thing about YAML is the referencing. It’s super easy to reuse an object multiple times. Gives that same kind of parten child struct ability that programming languages have. Sure XML can do it, but it’s not in every parser. cough python built in parser cough But then YAML is also not a built in parser and doing DOM in things other than XML feels odd.

    • Feyd@programming.dev
      link
      fedilink
      arrow-up
      1
      ·
      25 minutes ago

      That capability is what enables billion laugh attacks, unfortunately, so not having it enabled in cases where there is external input possible is wise