Spyke
lemmy.world

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

14

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

8
itslilithreply
lemmy.blahaj.zone

I don't know many people who count like 👍☝️🖕, so you kinda already do. You're just allowing more combinations

2
lemmy.world

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.

1
uisreply
lemmy.world

Base 2 should be easy to add, but it requires effort to convert

2
programming.dev

If you count finger joints and tips, using your thumb – you can count in hex (base16) on each hand.

5

I literally did this the other day... to be fair, it was a list starting with the number zero.

1
macnielreply
feddit.de

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.

5

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".

8
BorgDronereply
lemmy.one

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.

4

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.

0

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)

1

You reached the end