- cross-posted to:
- programmerhumor@lemmy.ml
- cross-posted to:
- programmerhumor@lemmy.ml
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…”
“1” + “1”
“11”
strings are in base two, got it
Wouldn’t the answer be “10” in that case?
1+1=11 means base 1
How so?
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.
Who calls it that? Who even uses that enough to have given it a name? Seems completely pointless…
Theoretical computer scientists, historians of mathematics.
I’m not sure where I heard the term exactly, but I know I have multiple times.
Based
Oh, I get it, was reading as base 2 and confused by that. Essentially Roman numerals without all the fancy shortcuts.
Closer to tally marks without clustering
yes, if I could do maths
That’s unary.
Strings are in base whatever roman numerals are.
int(“11”)