irelephant [he/him]@lemmy.dbzer0.com to Programmer Humor@programming.dev · 18 hours ago: (lemmy.dbzer0.comimagemessage-square29fedilinkarrow-up1258
arrow-up1258image: (lemmy.dbzer0.comirelephant [he/him]@lemmy.dbzer0.com to Programmer Humor@programming.dev · 18 hours agomessage-square29fedilink
minus-squareMultipleAnimals@sopuli.xyzlinkfedilinkEnglisharrow-up42·18 hours agostrings “true” and “false” ofc like any sane developer
minus-squareValmond@lemmy.dbzer0.comlinkfedilinkarrow-up21·16 hours agoI got a better one: O for true and N for false. Seen in production for quite important stuff (payment requests). O is from Oui, N from Non, of course! 😐🫤
minus-squarekubica@fedia.iolinkfedilinkarrow-up30·18 hours agoit allows for mood changes, some parts of the code can check charAt(0) == 't'others can do val != 'false' just let it flow.
minus-squaresznowicki@lemmy.worldlinkfedilinkarrow-up19·18 hours agoAnd for double fun if the output doesn’t matter you can make if endsWith(“e”).
strings “true” and “false” ofc like any sane developer
I got a better one: O for true and N for false.
Seen in production for quite important stuff (payment requests).
O is from Oui, N from Non, of course!
😐🫤
good fucking god
it allows for mood changes, some parts of the code can check
charAt(0) == 't'others can doval != 'false'just let it flow.lord mary joseph make it stop
And for double fun if the output doesn’t matter you can make if endsWith(“e”).