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.”

  • Lysergid@lemmy.ml
    link
    fedilink
    arrow-up
    3
    ·
    6 hours ago

    Yaml is dogshit format. If you need tree-like structure use json if you need list of props use toml or simple key value pairs. I fucking hate app properties in yaml.

    • can’t search shit
    • copy-paste doesn’t “just work” when you want to merge two files
    • your editor doesn’t show whitespaces and you messed up somewhere - valid but incorrect
    • messed up formatting your list of banned IPs/hosts/ports/users/subnets/commands - get pwned

    It should’ve never left the basement of crackhead who thought “let’s make schema-less format depend on number of invisible characters”.

    I’ll rather save my data in Copybook and record it on tape then use this Python-bastardized abomination

    • abbadon420@sh.itjust.works
      link
      fedilink
      arrow-up
      1
      ·
      5 hours ago

      Oh nice! I didn’tknow toml, so I looked it up a bit. Atfirst I was like “this is just .properties with a better typing support”. Than I saw the tables and the inline tables, which is a really neat way for complex nesting. It reminds me of json, but better. I’ll see if I can start using this somewhere.