why does counting start at zero in programming? wrong answers only.
Conversation
Notices
-
nixCraft 🐧 (nixcraft@mastodon.social)'s status on Wednesday, 08-May-2024 01:27:20 JST nixCraft 🐧
-
André van Schoubroeck (grombeestje@mastodon.social)'s status on Wednesday, 08-May-2024 01:46:41 JST André van Schoubroeck
@nixCraft Imagine starting at 32
-
Psychedelic「カメレオン」 (gluttonchameleon@mastodon.social)'s status on Wednesday, 08-May-2024 02:03:12 JST Psychedelic「カメレオン」
@nixCraft the inspiration cones from the tarot cards, and the first card is zero the fool, like anyone who starts programing feels like at the beginning
-
some random dude (shadowplay_2112@mastodon.social)'s status on Wednesday, 08-May-2024 02:06:47 JST some random dude
@nixCraft It actually started at 1, but like line numbers in BASIC, someone realised they needed space to insert a new item at the beginning. So it was originally “intentionally left blank”, but later became the default.
-
be3n (be3n@mastodon.social)'s status on Wednesday, 08-May-2024 02:15:07 JST be3n
@nixCraft because of all the CPU cycles. How are you supposed to cycle on 1s.
-
qwertzuiopy (qwertzuiopy@mastodon.social)'s status on Wednesday, 08-May-2024 02:35:14 JST qwertzuiopy
@nixCraft Huh? I thought you could do like array[-1] and stuff?
-
Tisinti (tisinti@mastodon.social)'s status on Wednesday, 08-May-2024 02:42:14 JST Tisinti
@nixCraft cause 7, 8, 9
-
John Maxwell (jmax@mastodon.social)'s status on Wednesday, 08-May-2024 02:47:35 JST John Maxwell
@nixCraft The very fist program ever written had an off-by-one error, the programmer kludged it in production as a fix, and we've been backwards compatible ever since.
-
Rustem Zakiev 🔥 (willpraxis@mastodon.social)'s status on Wednesday, 08-May-2024 03:32:45 JST Rustem Zakiev 🔥
@nixCraft because when you ask a programmer how to count, they have to think for a while and when they finally recall, they go off like "0h! One, two, three..."
-
Tom Cole (tucats@mastodon.social)'s status on Wednesday, 08-May-2024 05:58:16 JST Tom Cole
@nixCraft embarrassing typo in summary of discussion regarding Zeno’s Paradox
-
M Horstmeier (solargroovy@mastodon.social)'s status on Wednesday, 08-May-2024 11:45:56 JST M Horstmeier
@nixCraft
It was a conspiracy crafted by "Big 0". You have to understand the role of the zero industrial complex in the early days of BCPL.. -
expiredtoken (expiredtoken@mastodon.social)'s status on Thursday, 09-May-2024 06:19:48 JST expiredtoken
@nixCraft That's false()
-