573

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
[-] apprehentice@lemmy.enchanted.social 48 points 4 months ago
[-] kionite231@lemmy.ca 49 points 4 months ago
[-] Skua@kbin.earth 24 points 4 months ago

strings are in base two, got it

[-] Rez@sh.itjust.works 38 points 4 months ago

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

[-] Skua@kbin.earth 41 points 4 months ago

yes, if I could do maths

[-] joyjoy@lemm.ee 22 points 4 months ago
[-] Eheran@lemmy.world 5 points 4 months ago
[-] CanadaPlus@lemmy.sdf.org 16 points 4 months ago

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.

[-] Eheran@lemmy.world 6 points 4 months ago

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

[-] docAvid@midwest.social 1 points 4 months ago

Closer to tally marks without clustering

[-] docAvid@midwest.social 0 points 4 months ago

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

[-] CanadaPlus@lemmy.sdf.org 3 points 4 months ago* (last edited 4 months ago)

Theoretical computer scientists, historians of mathematics.

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

[-] docAvid@midwest.social 3 points 4 months ago

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.

[-] CanadaPlus@lemmy.sdf.org 1 points 4 months ago
[-] SpaceNoodle@lemmy.world 9 points 4 months ago
[-] Agent641@lemmy.world 1 points 4 months ago

Strings are in base whatever roman numerals are.

[-] wesker@lemmy.sdf.org 7 points 4 months ago
load more comments (14 replies)
this post was submitted on 30 Jun 2024
573 points (98.2% liked)

Programmer Humor

19623 readers
1 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