Neo Mujico
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
renzev@lemmy.world to Programmer Humor@lemmy.mlEnglish · 1 年前

AI's take on XML

lemmy.world

message-square
33
fedilink
1

AI's take on XML

lemmy.world

renzev@lemmy.world to Programmer Humor@lemmy.mlEnglish · 1 年前
message-square
33
fedilink
alert-triangle
You must log in or register to comment.
  • toothpaste_sandwich@feddit.nl
    link
    fedilink
    arrow-up
    0
    ·
    1 年前

    Wow, that’s a very passive aggressive reaction. I enjoyed a lot.

    • SkyNTP@lemmy.ml
      link
      fedilink
      arrow-up
      0
      ·
      1 年前

      This is what happens when stack overflow is used for training.

      • Agent641@lemmy.world
        link
        fedilink
        arrow-up
        0
        ·
        1 年前

        Not long before AI just tells me to google it, or read the manual.

        • daddy32@lemmy.world
          link
          fedilink
          arrow-up
          0
          ·
          1 年前

          Yea, the Bing chat (or what it was originally called) sometimes used to tell people to learn coding instead of asking it to generate code.

      • jonwyattphillips@lemmy.ml
        link
        fedilink
        arrow-up
        0
        ·
        1 年前

        This is what happens when people make content for points.

        OP already admitted he made it up.

  • annoyed-onion@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    1 年前

    I mean, it’s not wrong…

    • Serinus@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      1 年前

      Disagree. I prefer XML for config files where the efficiency of disk size doesn’t matter at all. Layers of XML are much easier to read than layers of Json. Json is generally better where efficiency matters.

      • Hexarei@programming.dev
        link
        fedilink
        arrow-up
        0
        ·
        1 年前

        TOML or bust

        • renzev@lemmy.worldOP
          link
          fedilink
          arrow-up
          0
          ·
          1 年前

          yes.

      • Matriks404@lemmy.world
        link
        fedilink
        arrow-up
        0
        ·
        1 年前

        Aren’t most XML parsers faster than JSON parsers anyway?

  • it_depends_man@lemmy.world
    link
    fedilink
    Deutsch
    arrow-up
    0
    ·
    1 年前

    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…

    • Caveman@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      1 年前

      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

    • Gremour@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      1 年前

      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
        ·
        1 年前

        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

      • it_depends_man@lemmy.world
        link
        fedilink
        Deutsch
        arrow-up
        0
        ·
        1 年前

        Having an easy on the eyes markdown that is also easy to parse would be cool.

        But YAML does these things:

        https://ruudvanasseldonk.com/2023/01/11/the-yaml-document-from-hell

        which are not excusable, for any reason.

    • ByteJunk@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      1 年前

      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.

  • toastal@lemmy.ml
    link
    fedilink
    arrow-up
    0
    ·
    1 年前

    Balisage Paper: Fat Markup: Trimming the Fat Markup Myth one calorie at a time

    https://www.balisage.net/Proceedings/vol10/html/Lee01/BalisageVol10-Lee01.html

    XML is a fine format in comparison to JSON.

    • Takumidesh@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      1 年前

      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)

  • ☂️-@lemmy.ml
    link
    fedilink
    arrow-up
    0
    ·
    1 年前

    finally accurate ai

    • RunningInRVA@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      1 年前

      Except for obvious typos

  • Batman@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    1 年前

    A word document is xml

    • renzev@lemmy.worldOP
      link
      fedilink
      English
      arrow-up
      0
      ·
      edit-2
      1 年前

      zipped xml!

      • Batman@lemmy.world
        link
        fedilink
        arrow-up
        0
        ·
        1 年前

        The future if text documents were Json:

        City_pic.png.xml

  • SzethFriendOfNimi@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    edit-2
    1 年前

    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.

  • expatriado@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    1 年前

    stuff like this is how reddit found out their users comments were being used 😂

    • renzev@lemmy.worldOP
      link
      fedilink
      arrow-up
      0
      ·
      1 年前

  • ZILtoid1991@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    1 年前

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

  • Aceticon@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    1 年前

    I’m starting to like this AI thing…

  • Anna@lemmy.ml
    link
    fedilink
    arrow-up
    0
    ·
    edit-2
    1 年前

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

  • AeonFelis@lemmy.world
    link
    fedilink
    English
    arrow-up
    0
    ·
    1 年前

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

  • 𝘋𝘪𝘳𝘬@lemmy.ml
    link
    fedilink
    arrow-up
    0
    ·
    1 年前

    wate

  • Fontasia@feddit.nl
    link
    fedilink
    arrow-up
    0
    ·
    1 年前

    OH HEY EVERYONE, EVERYONE, THIS GUY LIKES JSON

    Fuck you and your unstructured garbage.

  • Tomkoid@lemmy.ml
    link
    fedilink
    arrow-up
    0
    ·
    1 年前

    BASED. What is the name of this AI? I want to use this.

Programmer Humor@lemmy.ml

programmerhumor@lemmy.ml

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !programmerhumor@lemmy.ml

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

  • Posts must be relevant to programming, programmers, or computer science.
  • No NSFW content.
  • Jokes must be in good taste. No hate speech, bigotry, etc.
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 2 users / day
  • 12 users / week
  • 42 users / month
  • 324 users / 6 months
  • 0 local subscribers
  • 38.3K subscribers
  • 1.07K Posts
  • 3.77K Comments
  • Modlog
  • mods:
  • AgreeableLandscape@lemmy.ml
  • cat_programmer@lemmy.ml
  • BE: 0.19.8
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org