Meme transcription:

Panel 1: Bilbo Baggins ponders, “After all… why should I care about the difference between int and String?

Panel 2: Bilbo Baggins is revealed to be an API developer. He continues, “JSON is always String, anyways…”

  • andyburke@fedia.io
    link
    fedilink
    arrow-up
    1
    ·
    8 months ago

    These JSON memes got me feeing like some junior dev out there is upset because they haven’t read and understood the docs.

    • 0x0@programming.dev
      link
      fedilink
      arrow-up
      1
      ·
      8 months ago

      If there are no humans in the loop, sure, like for data transfer. But for, e.g., configuration files, i’d prefer a text-based solution instead of a binary one, JSON is a nice fit.

        • bitfucker@programming.dev
          link
          fedilink
          arrow-up
          1
          ·
          8 months ago

          Until someone cannot tell the difference between tab and space when configuring or you miss one indentation. Seriously, whoever thinks indentation should have semantic meaning for computers should burn in hell. Indentation is for us, humans, not computers. You can write a JSON with or without indentation if you want. Also, use JSON5 to have comments and other good stuff for a config file.

        • bob_lemon@feddit.org
          link
          fedilink
          arrow-up
          1
          ·
          8 months ago

          Yaml is just arcane bullshit to actually write as a human. Nor is it intuitively clear how yaml serializes.

    • bleistift2@sopuli.xyzOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      8 months ago

      Hell, no. If I wanted to save bytes, I’d use a binary format, or just fucking zip the JSON. Looking at a request-response pair and quickly understanding the transferred data is invaluable.