Hexadecimal fun
Posted: (EET/GMT+2)
Brad Abrams from the WinFx team had a fun blog post regarding the "best" method names ever.
I've seen many funny method names (sometimes, I've even designed my own), but there's also one special type of nerd humor I like: hexadecimal wording. This is the art of have funny constant values, much like these:
const uint LEGACY_VALUE = 0xDEADBEEF; const uint THUMBS_UP = 0xB00BBABE; const uint ERROR_TOTAL_FAILURE = 0xFACE0FF; const bool FALSE_FLAG = (0xCE0 == 0xDEAF); const bool DEBUG_STATE = (0xDECAF + 0xC0FFEE == 0xBAD);
To help you a bit, here's a (partial) word list you can use in your hexadecimal word plays:
0B0E 0DD 0FF ABBA AD0 AD0BE ADA ADD B00 B00B B0A B0B BABA BABE BAD BE BE BED BEE BEEF BEEFCACE C00 C0C0A C0CA C0DA C0DE C0DEC C0ED C0FFEE CAB CAD CE0 D0 DAD DAD DAFF0 DEAD DEAD DEAF DEC0 DEC0DE DECADE DECAF DEED DEFACE EA EBB ED0 F00 F00D F0E FAB FACADE FACE FACE0FF FADE FED FEE FEED
Late night fun, eh? Remember to eat yer "BEEFCACE".