inari@piefed.zip to Programming@programming.devEnglish · edit-22 months agoA faster way to calculate the day-of-the-weekwww.benjoffe.comexternal-linkmessage-square9fedilinkarrow-up125arrow-down10
arrow-up125arrow-down1external-linkA faster way to calculate the day-of-the-weekwww.benjoffe.cominari@piefed.zip to Programming@programming.devEnglish · edit-22 months agomessage-square9fedilink
minus-squareaichan@piefed.blahaj.zonelinkfedilinkEnglisharrow-up6·edit-22 months ago By the end, you will understand why this code above works. I was utterly fooled. Looks cool though!
minus-squareCaveman@lemmy.worldlinkfedilinkarrow-up2·2 months 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.