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
  • interdimensionalmeme@lemmy.ml
    link
    fedilink
    arrow-up
    2
    ·
    2 years ago

    Strong competition from yaml and json on this point however

    • ClassifiedPancake@discuss.tchncs.de
      link
      fedilink
      arrow-up
      5
      ·
      2 years ago

      JSON not supporting comments is a human rights violation

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

        I wrote a powershell script to parse some json config to drive it’s automation. I was delighted to discover the built-in powershell ConvertFrom-Json command accepts json with // comments as .jsonc files. So my config files get to be commented.

        I hope the programmer(s) who thought to include that find cash laying in the streets everyday and that they never lose socks in the dryer.

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

          There is actually an extension to JSON: https://json5.org/

          Unfortunately only very few tools support that.

      • Phoenixz@lemmy.ca
        link
        fedilink
        arrow-up
        1
        ·
        2 years ago

        Wouldn’t go that far, but it’s an annoyance for sure.

    • AVincentInSpace@pawb.social
      link
      fedilink
      English
      arrow-up
      1
      ·
      2 years ago

      Alright, the YAML spec is a dang mess, that I’ll grant you, but it seems pretty easy for my human eyes to read and write. As for JSON – seriously? That’s probably the easiest to parse human-readable structured data format there is!

      • interdimensionalmeme@lemmy.ml
        link
        fedilink
        arrow-up
        2
        ·
        2 years ago

        My biggest gripe is that human eyes cannot in fact see invisible coding characters such as tabs and spaces. I cannot abide by python for the same reason.

        • ReCursing@lemmings.world
          link
          fedilink
          arrow-up
          1
          ·
          2 years ago

          You can set those things to be visible in many editors. Its ugly tho

          • interdimensionalmeme@lemmy.ml
            link
            fedilink
            arrow-up
            1
            ·
            2 years ago

            The language should just let me specify which character I want for that. I would use “>”.

            • interdimensionalmeme@lemmy.ml
              link
              fedilink
              arrow-up
              1
              ·
              2 years ago

              It would be a compiler directive, I think. Or let me type “end if” and just disregard the coding indentation

            • ReCursing@lemmings.world
              link
              fedilink
              arrow-up
              1
              ·
              2 years ago

              That’d be an editor thing rather than a language thing, I would have thought. It’s probably configurable in some

          • Rolling Resistance@lemmy.world
            link
            fedilink
            arrow-up
            1
            ·
            2 years ago

            Until you’re doing an online course in a simplistic web editor. Don’t ask me how I know 🥲

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

        it is anything but easy to read if your entire file does not fit on a single screen.

        • AVincentInSpace@pawb.social
          link
          fedilink
          English
          arrow-up
          1
          ·
          2 years ago

          what kind of config file is short enough to fit on a single screen with line breaks?

        • virku@lemmy.world
          link
          fedilink
          arrow-up
          1
          ·
          2 years ago

          What data format is easy to read if it fills more than the entire screen?

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.

  • 1 user / day
  • 1 user / week
  • 1 user / month
  • 36 users / 6 months
  • 1 local subscriber
  • 43.5K subscribers
  • 1.36K Posts
  • 10.8K Comments
  • Modlog
  • mods:
  • cat_programmer@lemmy.ml
  • UI: unknown version
  • BE: 0.19.18
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org