Sunday, April 10, 2005

 

Fun with hex


Stolen from "Best" method names ever...:
These aren't really method names, but nice constant values I've seen (or used) during the years. Hexadecimal fun in the style of "BEEFCACE".
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);

This page is powered by Blogger. Isn't yours?