• zero@lemm.ee
      link
      fedilink
      arrow-up
      25
      ·
      3 years 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.worlddeleted by creator
        link
        fedilink
        arrow-up
        4
        ·
        3 years 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.worlddeleted by creator
            link
            fedilink
            arrow-up
            2
            ·
            3 years ago

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