My Lemny
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
renzev@lemmy.world to Programmer Humor@lemmy.mlEnglish · 1 year ago

AI's take on XML

lemmy.world

external-link
message-square
128
link
fedilink
1
external-link

AI's take on XML

lemmy.world

renzev@lemmy.world to Programmer Humor@lemmy.mlEnglish · 1 year ago
message-square
128
link
fedilink
  • ClassifiedPancake@discuss.tchncs.de
    link
    fedilink
    arrow-up
    0
    ·
    1 year ago

    JSON not supporting comments is a human rights violation

    • Codex@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      1 year 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
        0
        ·
        1 year 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
      0
      ·
      1 year ago

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

    • frezik@midwest.social
      link
      fedilink
      arrow-up
      0
      ·
      1 year 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
        0
        ·
        1 year ago

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

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.

  • 49 users / day
  • 79 users / week
  • 394 users / month
  • 1.38K users / 6 months
  • 0 local subscribers
  • 37.9K subscribers
  • 1.81K Posts
  • 32.2K Comments
  • Modlog
  • mods:
  • AgreeableLandscape@lemmy.ml
  • cat_programmer@lemmy.ml
  • BE: 0.19.12
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org