Fun fact: when learning some instruments (e.g. bowed instruments) you also number the fingers starting from your index (because you don’t play with the thumb)
coworker taught me this and it blew my mind. I had previously jokingly used base 2 with my hands, but something like 01001 10010 would be difficult to handle.
My seven year old did something similar. At least once a day I’d hear ‘Dad, Dad, I’m counting to four!’ and see the little shit flipping me off and laughing hysterically :D
You could have “empty arrays” in a language if you wanted. The real reason is that you start with an offset of zero as you read an array from memory at hardware level, and so this way address is just “start address + element size * element number”.
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !programmerhumor@lemmy.ml
Post funny things about programming here! (Or just rant about your favourite programming language.)
Rules:
Posts must be relevant to programming, programmers, or computer science.
No NSFW content.
Jokes must be in good taste. No hate speech, bigotry, etc.
Fun fact: when learning some instruments (e.g. bowed instruments) you also number the fingers starting from your index (because you don’t play with the thumb)
Someone is confusing indices and cardinality.
I literally did this the other day… to be fair, it was a list starting with the number zero.
LUN is life.
AKschually, thumbs aren’t fingers.
Base 5 is based
Don’t you mean base 10?
Also, clearly seximal is the best
coworker taught me this and it blew my mind. I had previously jokingly used base 2 with my hands, but something like 01001 10010 would be difficult to handle.
Base 2 should be easy to add, but it requires effort to convert
It gets easier with practice
The French used to count in base 20 (so that means both hands and both feet), which is why they read 97 as quatre-vingt-dix-sept, ie
4*20+10+7
.One of the reasons why I hate learning French so much.
0 1 10 11 100
I’ve watched Inglorious Basterds I’m not falling for that trick
counting != indexing
^^
If you count in binary you can get to 31 on one hand, and 2,047 on two hands
One hand would be 2**5 = 32 (0 to 31) and two would be 2**10 = 1024 (0 to 1023).
And if you use 3 states per finger (down, half raised and raised), you can have 3**10 = 59049 (0 to 59048).
nah, you can have 16+8+4+2+1 = 31 on one hand, and 1024+512+256+128+64+32+16+8+4+2+1=2047 on two hands.
I don’t count to 1024 over often (literally never) so I don’t feel the need to go to trinary.
It really turns into Naruto style ninjitsu.
I’m not flipping you off, i just counted to 4
19 is the rock and roll symbol
22 is the shocker
Assuming you use your thumb as the first bit
I taught my kids how to do it and for a while they’d tell each other to binary four off
My seven year old did something similar. At least once a day I’d hear ‘Dad, Dad, I’m counting to four!’ and see the little shit flipping me off and laughing hysterically :D
Nah. 1,2,4,8,16… or 1, 10, 100, 1000, 10000, depending on how you look at it.
You use more than one finger at once.
I don’t know many people who count like 👍☝️🖕, so you kinda already do. You’re just allowing more combinations
Good point.
0 ✊
1 👍
2 ☝️
3 👆
4 🖕
6 ✌️
17 🤙
18 🤘
19 🤟
28 👌
31 ✋
2 👆
3 👆
4 🖕
5 🖕
6 🖕
Hey, fourck you too, man.
Well, 132 you!
2
guys, or I’ll0
you both!1
?Why did 2 break up with zero?
Some 1 got between them!
Haaaaaang on is that why we start on 0…
Because if you convert it back to binary, you have 0x0000 and that is one extra bit you can use instead of limiting your available values.
No. We count start at zero because the array already starts with an element of a specific size. Starting at 1 would always skip that initial element.
You could have “empty arrays” in a language if you wanted. The real reason is that you start with an offset of zero as you read an array from memory at hardware level, and so this way address is just “start address + element size * element number”.
No, we start counting at one. We start indexing at zero.
An array with one element has an element count of 1, and that element would be at index 0.
This is how we end up with off-by-one errors
0, 1, 2, 3, 5, 8, 13, 21, etc.
If you count finger joints and tips, using your thumb – you can count in hex (base16) on each hand.
🤯 wow, that’s a neat idea! That might come in handy some time 🤔