Sky-Lemmy
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
renzev@lemmy.world to Programmer Humor@lemmy.mlEnglish · 10 个月前

AI's take on XML

lemmy.world

message-square
131
fedilink
1.25K

AI's take on XML

lemmy.world

renzev@lemmy.world to Programmer Humor@lemmy.mlEnglish · 10 个月前
message-square
131
fedilink
  • ClassifiedPancake@discuss.tchncs.de
    link
    fedilink
    arrow-up
    43
    ·
    10 个月前

    JSON not supporting comments is a human rights violation

    • frezik@midwest.social
      link
      fedilink
      arrow-up
      15
      ·
      10 个月前

      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
        ·
        10 个月前

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

    • Codex@lemmy.world
      link
      fedilink
      arrow-up
      9
      ·
      10 个月前

      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
        ·
        10 个月前

        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
      ·
      10 个月前

      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: !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.

  • 280 users / day
  • 710 users / week
  • 2.7K users / month
  • 9.93K users / 6 months
  • 1 local subscriber
  • 37.1K subscribers
  • 1.8K Posts
  • 37.6K Comments
  • Modlog
  • mods:
  • cat_programmer@lemmy.ml
  • AgreeableLandscape@lemmy.ml
  • BE: 0.19.8
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org