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.
Creative Use of Bitwise Operators
Published by Bramus!
Bramus is a frontend web developer from Belgium, working as a Chrome Developer Relations Engineer at Google. From the moment he discovered view-source at the age of 14 (way back in 1997), he fell in love with the web and has been tinkering with it ever since (more …)
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.