I did say this would be geeky…
int banana = -1;
printf(“div: %d ; shift: %d\n”, banana/2, banana>>1);
Gives:
div: 0 ; shift: -1
Weird, huh?
int banana = -1;
printf(“div: %d ; shift: %d\n”, banana/2, banana>>1);
Gives:
div: 0 ; shift: -1
Weird, huh?
Why the hell can’t Word do a numbered list starting at 0?
This will be continued.
Every now and again I find something randomly in someone’s code, whether it’s a comment or just a funny variable name. In this case it’s the default information in the about box for a cocoa document-based application:
Engineering:
Some peopleHuman Interface Design:
Some other peopleTesting:
Hopefully not nobodyDocumentation:
WhoeverWith special thanks to:
Mom
Made me smile
This blog is likely to be updated only sporadically, to be full of extremely eclectic/geeky nonsense and probably of no interest to anyone.