237
submitted 2 years ago by [email protected] to c/[email protected]
top 20 comments
sorted by: hot top new old
[-] [email protected] 34 points 2 years ago

0โœŠ

8โ˜๏ธ

9๐Ÿค˜

12โœŒ๏ธ

17๐Ÿค™

25๐ŸคŸ

31โœ‹

[-] [email protected] 15 points 2 years ago
[-] [email protected] 3 points 2 years ago
[-] [email protected] 3 points 2 years ago* (last edited 2 years ago)
[-] [email protected] 5 points 2 years ago

16 would be ๐Ÿ‘ (going by the mapping in this post, or the pinky if you do thumb = 1).

4 is 4 either way.

[-] [email protected] 1 points 2 years ago

๐Ÿ–•we love 4

[-] [email protected] 25 points 2 years ago

Doc, if you can't count to 1023 on your fingers, you might be doing CS wrong!

[-] [email protected] 11 points 2 years ago

Oh, for fuck's sake.

Your thumb is not your zeroth finger; it's your first finger.

Starting from zero is for situations when you're counting the left (or first) edge of containers used to hold items. For example, if you wanted to count the number of balls you could hold in the spaces between your fingers, you start with 0 because the number of balls you can hold between your thumb and {} is 0.

[-] [email protected] 9 points 2 years ago

Indices vs offsets. A lot of people mistake the two because they took CS 101 and thought it was so cool to say I sTaRt cOuNtInG fRoM zErO.

[-] [email protected] 6 points 2 years ago

bro has never heard of a joke

[-] [email protected] 4 points 2 years ago

But length of container gives you for example 3, and it has a size of 4. Explain that.

[-] [email protected] 3 points 2 years ago

length measures the spaces between the spaces between your fingers, so you can fit 3 balls between the 4 balls between your fingers

[-] [email protected] 3 points 2 years ago

Also indexes. Once you've been bitten enough by off-by-one errors this actually becomes a pretty handy double-check.

[-] [email protected] 1 points 2 years ago

indexes in memory can be thought of as the address of the leftmost bit in a byte (container)

[-] [email protected] 2 points 2 years ago

Sorry, too busy counting digital outputs on Modicon PLCs to think about that stuff.

[-] [email protected] 2 points 2 years ago

There you are, our CS doctor.

[-] [email protected] 0 points 2 years ago

You're angry

[-] [email protected] 8 points 2 years ago

Hmm. I use 1, 2, 4, 8, 16 (I seldom need to count beyond 31 (and have up to five more bits if needed), or to zero)

[-] [email protected] 2 points 2 years ago
[-] [email protected] 1 points 2 years ago

I'm just learning about number systems!

this post was submitted on 15 Sep 2023
237 points (92.5% liked)

Programmer Humor

37126 readers
35 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS