this post was submitted on 19 Sep 2024
1482 points (98.4% liked)

Programmer Humor

32472 readers
992 users here now

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

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 120 points 1 month ago (23 children)

She is right, using 0 index for physical stuff is stupid.

[–] [email protected] 45 points 1 month ago (13 children)

Your rulers start at 1? That sounds annoying.

[–] [email protected] 10 points 1 month ago* (last edited 1 month ago) (2 children)

Your job is to move apples from one bin to another. You pick up the first one and set it in the other bin, and say "zero."?

[–] [email protected] 9 points 1 month ago

There's another way to think about it which I actually use. Look in the empty bin and say "zero", then move an apple and say "one".

[–] [email protected] 6 points 1 month ago

When playing games with the kids, we start at 0 being the position you are currently in, then count from there.

e.g. in snakes and ladders, if you are on spot 30 and roll a 5, tap spot 30 and say "zero", then spot 31 is "one" etc.. till you are at spot 35 saying "five".

Teaches the kids about zero and avoids miss counts from the younger ones counting their current position as "one"

load more comments (10 replies)
load more comments (19 replies)