• sem@lemmy.blahaj.zone
    link
    fedilink
    English
    arrow-up
    13
    ·
    1 day 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.

    • ChaoticNeutralCzech@feddit.org
      link
      fedilink
      English
      arrow-up
      3
      ·
      edit-2
      15 hours ago

      2 is a swan
      817 is an open-beaked screaming hatchling
      -2 is a seahorse
      .5 is a sitting bird
      6.6 is an owl
      -5e7 is a nesting chicken
      -5.43 is a peacock
      8008 is a tit

      0 is an egg. Bird, fish, amphibian, reptile, who can tell? Truly a neutral answer - neither positive nor negative.

      To help you visualize:

      Also, number 4 in different scripts looks quite fishy ૪ or quite birdy ۴.

  • Zikeji@programming.dev
    link
    fedilink
    English
    arrow-up
    16
    ·
    2 days ago

    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.

    • wizardbeard@lemmy.dbzer0.com
      link
      fedilink
      English
      arrow-up
      14
      ·
      1 day ago

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

      Explanation

      18,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.

      • porous_grey_matter@lemmy.ml
        link
        fedilink
        English
        arrow-up
        6
        ·
        1 day 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.