Now this is pure genius! Jonathan Snook cleverly uses bitwise operators in order to nicely fill up a week calendar, as seen in Google Calendar amongst other likewise apps.
A rather geeky/technical weblog, est. 2001, by Bramus
Now this is pure genius! Jonathan Snook cleverly uses bitwise operators in order to nicely fill up a week calendar, as seen in Google Calendar amongst other likewise apps.
Great use of bitwise operators, but it amazes me that so many people see them as useless. I feel that the less I use them, the more my code could be improved. Good code is impregnated with their use. Information is ultimately represented as bits, so let’s strive to operate at the lowest most efficient level.