I got into a discussion with a fellow student today who worked at Microsoft. His product manager told him not to use bit operations because it’s important to keep code readable. Code should be self-documenting. I agree with this, but when you can perform functions with a couple lines of bit operations, it can be [...]
Category Archives: Code
Beatitudes in C#
July 4 09
12345678class the_earth { … }; class the_meek : public the_earth { … }; From: StackOverflow answer
Bit Operations
July 4 09
For CS351, Intro to Systems, we had to do several operations using bit operators only. These took awhile, but are pretty cool to show off. We were graded by how few operations we used to return the right values for the generated test cases, including some difficult boundary ones.