I enjoyed this #programming post:
"4 billion if statements"
https://andreasjhkarlsson.github.io//jekyll/update/2023/12/27/4-billion-if-statements.html #coding
@davidbisset
My head hurts.
if( num & 1 )...
That's it. No need for modulo, because with binary you can just AND with 1, done.
@davidbisset @corpsmoderne is it from one of your student?
@jeckel @davidbisset not a chance. A student of mine would have written a switch/case.