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

Programmer Humor

19813 readers
205 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 2 years 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
[–] brian@programming.dev 5 points 5 months ago (2 children)

json doesn't have ints, it has Numbers, which are ieee754 floats. if you want to precisely store the full range of a 64 bit int (anything larger than 2^53 -1) then string is indeed the correct type

[–] bleistift2 1 points 5 months ago

Let me show you what Ethan has to say about this: https://feddit.org/post/319546/174361

load more comments (1 replies)