@[email protected] to Ask [email protected] • 3 years agoWhat's a word you haven't heard used in years?message-square203fedilinkarrow-up1192arrow-down17
arrow-up1185arrow-down1message-squareWhat's a word you haven't heard used in years?@[email protected] to Ask [email protected] • 3 years agomessage-square203fedilink
minus-square@[email protected]linkfedilink24•3 years agoAs a software developer, I actually use “truthy” and “falsy” pretty regularly for “the computer thinks this value is true/false”
minus-square@[email protected]linkfedilink4•3 years agoJust 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.
minus-square@[email protected]linkfedilink4•3 years ago because the array itself exists More specifically it’s because the array isn’t empty.
minus-square@[email protected]linkfedilink2•3 years agoYup you’re more right than I was. An empty array is still Falsy even though it exists. I accept the correction.
As a software developer, I actually use “truthy” and “falsy” pretty regularly for “the computer thinks this value is true/false”
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.
More specifically it’s because the array isn’t empty.
Yup you’re more right than I was. An empty array is still Falsy even though it exists. I accept the correction.