Remix.run Logo
sameesh 2 hours ago

What's with people using the number "0" for their first reference? I have only ever seen that practice here at Hacker News.

layer8 an hour ago | parent | next [-]

See https://en.wikipedia.org/wiki/Zero-based_numbering, e.g. “computer programmers might use zeroth in situations where others might use first”.

ebb_earl_co 2 hours ago | parent | prev | next [-]

Lots of (most?) programming languages are 0-indexed so it feels natural for software developers and our ilk.

SoftTalker 6 minutes ago | parent [-]

Not really. 0-based indexing is different from counting and starting with 0 in a counting context is weird. Would you ever say a set has zero elements when it actually contains a single element?

dabbz 24 minutes ago | parent | prev [-]

Hey everyone! I found the COBOL developer!