I did it the other day!
I was trying to pad a base64-encoded string with the proper number of =
s to get it up to a multiple of 4 because our stupid build toolchain would explode if it wasn’t.
Comment on unrolling loops is efficient, right?
tool@r.rosettast0ned.com 1 year agoIt’s so rare for me to have to use the modulo operator I’m actually excited when I come across a situation where I can.
I did it the other day!
I was trying to pad a base64-encoded string with the proper number of =
s to get it up to a multiple of 4 because our stupid build toolchain would explode if it wasn’t.
jimmux@programming.dev 1 year ago
It’s like how when you were a kid, you thought quicksand was something you would need to be aware of as an adult in the big wide world. In my undergrad, mod everywhere. Very important knowledge. Now not so much.
HamBrick@programming.dev 1 year ago
I (a teen boy) was with a bunch of other dudes on a river, one found quicksand, and it quickly became a game of who could get deepest