UmU
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
renzev@lemmy.world to Programmer Humor@lemmy.mlEnglish · 8 months ago

AI's take on XML

lemmy.world

message-square
134
fedilink
1.26K

AI's take on XML

lemmy.world

renzev@lemmy.world to Programmer Humor@lemmy.mlEnglish · 8 months ago
message-square
134
fedilink
  • ClassifiedPancake@discuss.tchncs.de
    link
    fedilink
    arrow-up
    43
    ·
    8 months ago

    JSON not supporting comments is a human rights violation

    • frezik@midwest.social
      link
      fedilink
      arrow-up
      15
      ·
      8 months ago

      IIRC, the original reason was to avoid people making custom parsing directives using comments. Then people did shit like "foo": "[!-- number=5 --]" instead.

      • Codex@lemmy.world
        link
        fedilink
        arrow-up
        4
        ·
        8 months ago

        I’ve written Go code; they were right to fear.

    • Codex@lemmy.world
      link
      fedilink
      arrow-up
      9
      ·
      8 months 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
        6
        ·
        8 months 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
      5
      ·
      8 months ago

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

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: [email protected]

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.

  • 59 users / day
  • 526 users / week
  • 1.68K users / month
  • 10.2K users / 6 months
  • 1 local subscriber
  • 35.6K subscribers
  • 1.31K Posts
  • 20.9K Comments
  • Modlog
  • mods:
  • AgreeableLandscape@lemmy.ml
  • cat_programmer@lemmy.ml
  • BE: 0.19.9
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org