@RealWrastling@lemmy.world to Ask Lemmy@lemmy.world • 1 year agoWhat's a word you haven't heard used in years?message-square195fedilinkarrow-up1194arrow-down16
arrow-up1188arrow-down1message-squareWhat's a word you haven't heard used in years?@RealWrastling@lemmy.world to Ask Lemmy@lemmy.world • 1 year agomessage-square195fedilink
minus-square@zero@lemm.eelinkfedilink25•1 year agoAs a software developer, I actually use “truthy” and “falsy” pretty regularly for “the computer thinks this value is true/false”
minus-square@model_tar_gz@lemmy.worldlinkfedilink4•1 year 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@Skyhighatrist@lemmy.calinkfedilink4•1 year ago because the array itself exists More specifically it’s because the array isn’t empty.
minus-square@model_tar_gz@lemmy.worldlinkfedilink2•1 year agoYup you’re more right than I was. An empty array is still Falsy even though it exists. I accept the correction.
Truthiness
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.
Strategery