this post was submitted on 30 Jun 2024
571 points (98.1% liked)

Programmer Humor

19315 readers
96 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 1 year ago
MODERATORS
 

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…”

you are viewing a single comment's thread
view the rest of the comments
[–] ooterness@lemmy.world 18 points 3 months ago (21 children)
[–] 0x0@programming.dev 10 points 3 months ago (14 children)

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.

[–] Michal@programming.dev 1 points 3 months ago (4 children)

Yaml is more human readable/editable, and it's a superset of json!

[–] bitfucker@programming.dev 2 points 3 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.

load more comments (3 replies)
load more comments (12 replies)
load more comments (18 replies)