• zero@lemm.ee
    link
    fedilink
    arrow-up
    25
    ·
    11 months ago

    As a software developer, I actually use “truthy” and “falsy” pretty regularly for “the computer thinks this value is true/false”

    • model_tar_gz@lemmy.world
      cake
      link
      fedilink
      arrow-up
      4
      ·
      11 months ago

      Just remember that even though None is Falsy, an array of Nones is Truthy. Gets me every time. I fucking understand it logically (because the array itself exists) but damnit if I can make my lizard brain comprehend it while coding it.

        • model_tar_gz@lemmy.world
          cake
          link
          fedilink
          arrow-up
          2
          ·
          11 months ago

          Yup you’re more right than I was. An empty array is still Falsy even though it exists. I accept the correction.