• Anna@lemmy.ml
    link
    fedilink
    arrow-up
    0
    ·
    edit-2
    10 days ago

    Is this a tactic used by skynet to lure all humans together and then…BANG!!!

  • it_depends_man@lemmy.world
    link
    fedilink
    Deutsch
    arrow-up
    0
    ·
    11 days ago

    It is very cool, specifically as a human readable mark down / data format.

    The fact that you can make anything a tag and it’s going to be valid and you can nest stuff, is amazing.

    But with a niche use case.

    Clearly the tags waste space if you’re actually saving them all the time.

    Good format to compress though…

    • Gremour@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      11 days ago

      YAML for human-written files, JSON for back-to-front and protobuf for back-to-back. XML is an abomination.

      • renzev@lemmy.worldOP
        link
        fedilink
        arrow-up
        0
        ·
        10 days ago

        YAML is good for files that have a very flexible structure or need to define a series of steps. Like github workflows or docker-compose files. For traditional config files with a more or less fixed structure, TOML is better I think

    • Caveman@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      11 days ago

      I don’t mind xml as long as I don’t have to read or write it. The only real thing I hate about xml is that an array of one object can mistaken for a property of the parent instead of a list

    • ByteJunk@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      11 days ago

      I disagree, with a passion.

      It is soooo cluttered, so much useless redundant tags everywhere. Just give JSON or YAML or anything really but XML…

      But to each their own i guess.

  • AeonFelis@lemmy.world
    link
    fedilink
    English
    arrow-up
    0
    ·
    10 days ago

    XML is good for markup. The problem is that people too often confuse “markup” and “serialization”.

    • Takumidesh@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      11 days ago

      I hate writing and reading xml compared to json, I don’t really care if one is slightly leaner than the other. If your concern is the size or speed you should probably be rethinking how you serialize the data anyway (orotobuff/DB)

  • Fontasia@feddit.nl
    link
    fedilink
    arrow-up
    0
    ·
    10 days ago

    OH HEY EVERYONE, EVERYONE, THIS GUY LIKES JSON

    Fuck you and your unstructured garbage.

  • SzethFriendOfNimi@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    edit-2
    11 days ago

    It’s not a waste of time… it’s a waste of space. But it does allow you to “enforce” some schema. Which, very few people use that way and so, as a data store using JSON works better.

    Or… we could go back to old school records where you store structs with certain defined lengths in a file.

    You know what? XML isn’t looking so bad now.

    If you want to break the AI ask instead what regex you should use to parse HTML.

  • ZILtoid1991@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    11 days ago

    XML has its strengths as a markdown format. My own formatted text format ETML is based on XML, as I could recycle old HTML conventions (still has stylesheet as an option), and I can store multiple text blocks in an XML file. It’s not something my main choice of human readable format SDL excels at, which itself has its own issues (I’m writing my own extensions/refinements for it by the name XDL, with hexadecimal numbers, ISO dates, etc.).