86thumbs
  • 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
131
fedilink
1.23K

AI's take on XML

lemmy.world

renzev@lemmy.world to Programmer Humor@lemmy.mlEnglish · 8 months ago
message-square
131
fedilink
  • ClassifiedPancake@discuss.tchncs.de
    link
    fedilink
    arrow-up
    42
    ·
    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

remote_follow_modal_title

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.
community_visibility: public
globe

public_blurb

  • 369 users / day
  • 514 users / week
  • 1.92K users / month
  • 10.5K users / 6 months
  • number_of_local_subscribers
  • 35.6K subscribers
  • 1.69K Posts
  • 36.8K Comments
  • Modlog
  • mods:
  • AgreeableLandscape@lemmy.ml
  • cat_programmer@lemmy.ml
  • UI: unknown version
  • BE: 0.19.5
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org