saw a 2nd year CS guy run a maze solver (for final exam) with 300 nested if-statements. worked about 50% of the time. so he added another 5000 nested ifs and got it up to 90%. good enough!
It’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.
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.
I’m using it regularly to convert metric into imperial fractions.
I’m writing for a factory that is manufacturing windows and door so I’m this field everything is imperial imperial fractions. When I arrived we switched all the internal measurement to metric because imperial SUCKS for automatic processes.
I still need to do the conversion for everything that will be shown to the client.