lemmy rldn
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
renzev@lemmy.world to Programmer Humor@lemmy.mlEnglish · 2 years ago

AI's take on XML

lemmy.world

message-square
61
link
fedilink
51

AI's take on XML

lemmy.world

renzev@lemmy.world to Programmer Humor@lemmy.mlEnglish · 2 years ago
message-square
61
link
fedilink
  • Skull giver@popplesburger.hilciferous.nl
    link
    fedilink
    arrow-up
    1
    ·
    edit-2
    2 years ago

    deleted by creator

    • schnurrito@discuss.tchncs.de
      link
      fedilink
      arrow-up
      1
      ·
      2 years ago

      IMHO: XML is a file format, JSON is a data transfer format. Reinventing things like RSS or SVG to use JSON wouldn’t be helpful, but using XML to communicate between your app’s frontend and backend wouldn’t be either.

      • Skull giver@popplesburger.hilciferous.nl
        link
        fedilink
        English
        arrow-up
        1
        ·
        edit-2
        2 years ago

        [This comment has been deleted by an automated system]

        • schnurrito@discuss.tchncs.de
          link
          fedilink
          arrow-up
          0
          ·
          2 years ago

          Of course you can use XML that way, but it is unnecessarily verbose and complex because you have to make decisions, like, whether to store things as attributes or as nested elements.

          I stand by my statement that if you’re saving things to a file you should probably use XML, if you’re transferring data over a network you should probably use JSON.

          • Skull giver@popplesburger.hilciferous.nl
            link
            fedilink
            English
            arrow-up
            1
            ·
            edit-2
            2 years ago

            [This comment has been deleted by an automated system]

    • tetris11@lemmy.ml
      link
      fedilink
      arrow-up
      0
      ·
      2 years ago
      { "key": "six",
        "value": 6,
        "comment": "6 is a bad number. Use five." }
      
      • Skull giver@popplesburger.hilciferous.nl
        link
        fedilink
        English
        arrow-up
        1
        ·
        edit-2
        2 years ago

        deleted by creator

    • Caveman@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      2 years ago

      People may hate on SOAP but I’ve never had issues with setting up a SOAP client

      • Skull giver@popplesburger.hilciferous.nl
        link
        fedilink
        arrow-up
        1
        ·
        edit-2
        2 years ago

        [This comment has been deleted by an automated system]

    • Landless2029@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      2 years ago

      That’s my biggest peev about JSON actually. No comments!! WTH!

      • TCB13@lemmy.world
        link
        fedilink
        English
        arrow-up
        0
        ·
        2 years ago

        There’s comments in the specs and a bunch of parsers that actually inore //

        • Skull giver@popplesburger.hilciferous.nl
          link
          fedilink
          English
          arrow-up
          1
          ·
          edit-2
          2 years ago

          [This comment has been deleted by an automated system]

          • TCB13@lemmy.world
            link
            fedilink
            English
            arrow-up
            0
            ·
            2 years ago

            json spec draft 7

            • Skull giver@popplesburger.hilciferous.nl
              link
              fedilink
              arrow-up
              1
              ·
              edit-2
              2 years ago

              [This comment has been deleted by an automated system]

      • NekuSoul@lemmy.nekusoul.de
        link
        fedilink
        arrow-up
        0
        ·
        2 years ago

        On one hand I agree, on the other hand I just know that some people would immediately abuse it and put relevant data into comments.

        • Feathercrown@lemmy.world
          link
          fedilink
          English
          arrow-up
          0
          ·
          2 years ago

          This is why there are none, but I still think it’s dumb. Parsers can’t see comments anyways.

          • NekuSoul@lemmy.nekusoul.de
            link
            fedilink
            arrow-up
            1
            ·
            2 years ago

            That’s assuming people actually use a parser and don’t build their own “parser” to read values manually.

            And before anyone asks: Yes, I’ve known people who did exactly that and to this day I’m still traumatized by that discovery.

            But yes, comments would’ve been nice.

    • leisesprecher@feddit.org
      link
      fedilink
      arrow-up
      0
      ·
      2 years ago

      And there are some truly magic tools.

      XSDs are far from perfect, but waaay more powerful than json schema.

      XSLT has its problems, but completely transforming a document to a completely different structure with just a bit of text is awesome. I had to rewrite a relatively simple XSLT in Java and it was something like 10 times more lines.

      • Skull giver@popplesburger.hilciferous.nl
        link
        fedilink
        English
        arrow-up
        1
        ·
        edit-2
        2 years ago

        deleted by creator

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
  • 5 users / week
  • 11 users / month
  • 36 users / 6 months
  • 1 local subscriber
  • 43.9K subscribers
  • 1.37K Posts
  • 10.8K Comments
  • Modlog
  • mods:
  • cat_programmer@lemmy.ml
  • UI: unknown version
  • BE: 0.19.18
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org