Destide@feddit.uk to Programmer Humor@lemmy.mlEnglish · 6 days agoInfallible Codelemmy.mlexternal-linkmessage-square161fedilinkarrow-up1491arrow-down127
arrow-up1464arrow-down1external-linkInfallible Codelemmy.mlDestide@feddit.uk to Programmer Humor@lemmy.mlEnglish · 6 days agomessage-square161fedilink
minus-squarepivot_root@lemmy.worldlinkfedilinkarrow-up1·6 days ago you’d end up using modulus and move on quickly. But where’s the fun in that? There are so many better for obfuscation ways of checking for oddness! (a & 1) > 0 a.toString()[a.toString().length()-1] - '1' == 0 iseven(a)?(1==0):(1!=0)
But where’s the fun in that?
There are so many better
for obfuscationways of checking for oddness!(a & 1) > 0 a.toString()[a.toString().length()-1] - '1' == 0 iseven(a)?(1==0):(1!=0)