258
top 20 comments
sorted by: hot top controversial new old
[-] Xtallll 33 points 1 year ago

0โœŠ

8โ˜๏ธ

9๐Ÿค˜

12โœŒ๏ธ

17๐Ÿค™

25๐ŸคŸ

31โœ‹

[-] SHITPOSTING_ACCOUNT@feddit.de 14 points 1 year ago
[-] darcy@sh.itjust.works 4 points 1 year ago* (last edited 1 year ago)
[-] SHITPOSTING_ACCOUNT@feddit.de 5 points 1 year ago

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

4 is 4 either way.

[-] 18107@aussie.zone 3 points 1 year ago
[-] writeblankspace@lemm.ee 1 points 1 year ago

๐Ÿ–•we love 4

[-] fubo@lemmy.world 25 points 1 year ago

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

[-] grue@lemmy.world 14 points 1 year 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.

[-] Cargon@lemmy.ml 9 points 1 year 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.

[-] darcy@sh.itjust.works 6 points 1 year ago

bro has never heard of a joke

[-] DmMacniel@feddit.de 4 points 1 year ago

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

[-] TonyTonyChopper@mander.xyz 3 points 1 year ago

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

[-] spauldo@lemmy.ml 3 points 1 year ago

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

[-] darcy@sh.itjust.works 1 points 1 year ago

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

[-] spauldo@lemmy.ml 2 points 1 year ago

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

[-] hairinmybellybutt@lemmy.world 3 points 1 year ago

You're angry

[-] Phoenix3875@lemmy.world 2 points 1 year ago

There you are, our CS doctor.

[-] psud@lemmy.world 8 points 1 year 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)

I'm just learning about number systems!

this post was submitted on 15 Sep 2023
258 points (100.0% liked)

Programmer Humor

32562 readers
365 users here now

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

Rules:

founded 5 years ago
MODERATORS