inari@piefed.zip to Programming@programming.devEnglish · edit-221 days agoA faster way to calculate the day-of-the-weekwww.benjoffe.comexternal-linkmessage-square11fedilinkarrow-up188arrow-down10
arrow-up188arrow-down1external-linkA faster way to calculate the day-of-the-weekwww.benjoffe.cominari@piefed.zip to Programming@programming.devEnglish · edit-221 days agomessage-square11fedilink
minus-squareaichan@piefed.blahaj.zonelinkfedilinkEnglisharrow-up30·edit-221 days ago By the end, you will understand why this code above works. I was utterly fooled. Looks cool though!
minus-squareCaveman@lemmy.worldlinkfedilinkarrow-up2·8 days agoIt assumes that you already know how modulus works under the hood, which I absolutely did not. The proof for how it’s allowed is at the bottom which I would have read first if I’d have known.
I was utterly fooled. Looks cool though!
It assumes that you already know how modulus works under the hood, which I absolutely did not. The proof for how it’s allowed is at the bottom which I would have read first if I’d have known.