all 7 comments

sorted by: hot top controversial new old
[–] 15 points 9 months ago (2 children)

So if it has to be a number the question is - is the array of options, ['Fish', 'Bird'], 0-indexed or not? I guess 1 is the safest choice but not true to your actual choice.

  • source
  • hideshow 2 child comments
  • [–] 13 points 9 months ago* (1 child)

    Just for you, I'd enter 18,446,744,073,709,551,616

    Explanation18,446,744,073,709,551,615 is the max value an unsigned 64-bit long value can store. It's absurdly unlikely that any data indexing format supports this many indexes. Then I added 1 to it. 🫠

    For when you absolutely, positively, need to make sure you're out of bounds.

    Negatives aren't enough, because some programming languages allow you to index from the other end using negatives, so -1 is the final item.

  • source
  • parent
  • hideshow 1 child comment
  • [–] 7 points 9 months ago

    It's Google forms. I'm pretty sure they'll handle this case.

    Anyway, it's not that unlikely, for example, python's ints are arbitrary length (and convert to bigint under the hood when needed) and can just directly be used as hashmap/dictionary keys.

  • source
  • parent
  • [–] 12 points 9 months ago

    6 and 9 are both fishy digits, one is swimming up, the other down.

    3 is the bird in flight, but sideways. I guess 7 could be a gliding bird, seen in perspective, also sideways.

  • source
  • [–] 7 points 9 months ago

    <0{{{{{-< || <8={==⟨

  • source
  • [–] 4 points 9 months ago