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

Programmer Humor

18961 readers
1229 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
[–] [email protected] 48 points 1 month ago (17 children)
[–] [email protected] 49 points 1 month ago (16 children)
[–] [email protected] 24 points 1 month ago (14 children)

strings are in base two, got it

[–] [email protected] 38 points 1 month ago (2 children)

Wouldn't the answer be "10" in that case?

[–] [email protected] 41 points 1 month ago

yes, if I could do maths

[–] [email protected] 22 points 1 month ago (1 children)
[–] [email protected] 5 points 1 month ago (1 children)
[–] [email protected] 16 points 1 month ago (3 children)

1 11 111 1111 11111 111111

That's base 1. By convention, because it doesn't really fit the pattern of positional number systems as far as I can tell, but it gets called that.

[–] [email protected] 6 points 1 month ago (1 children)

Oh, I get it, was reading as base 2 and confused by that. Essentially Roman numerals without all the fancy shortcuts.

[–] [email protected] 1 points 1 month ago

Closer to tally marks without clustering

[–] [email protected] 0 points 1 month ago (1 children)

Who calls it that? Who even uses that enough to have given it a name? Seems completely pointless...

[–] [email protected] 3 points 1 month ago* (last edited 1 month ago) (1 children)

Theoretical computer scientists, historians of mathematics.

I'm not sure where I heard the term exactly, but I know I have multiple times.

[–] [email protected] 3 points 1 month ago (1 children)

Thanks for sharing this, it's quite interesting. I found a Wikipedia article on it: https://en.m.wikipedia.org/wiki/Unary_numeral_system

Apparently, as you did suggest, "base 1" is a name that is used, but is somewhat a misnomer.

The article mentions that Church encoding is a kind of unary notation, which I would not have thought of, but I guess it is.

Enjoyable little rabbit-hole to zap my productivity for the day.

[–] [email protected] 1 points 1 month ago
load more comments (11 replies)
load more comments (12 replies)
load more comments (12 replies)