0xCoffeeCabal

The other day I tried to come up with a Java hexadecimal literal that was cooler (and less tainted by sexism) than the ubiquitous 0xCAFEBABE. 0xCAFED00D is misspelled, and 0xDEADBEEF is not suitable for vegetarians.

So like any good Unix user, I came up with this:

grep -i '^[abcdef][abcdefo]*l\?$' /usr/share/dict/words

(The trailing letter l in the regular expression is legal: it is used in Java literals to signify a long instead of an int.)

My favorites?

I thought it was pretty cool that pair BADE and ACCEDED were both legal hexadecimal literals.

Programmers who like programming with patterns will be happy to know that FACADE is legal hexadecimal.

My favorite, though is C0FFEECABAL. But if you don't like coffee, you might prefer C0C0A.

Can you find a better one? Anyone want to submit examples (and translations) using a non-english dictionary?

Books

Comprehensive coverage of Ruby 1.8 and 1.9

"The New Most Important Ruby Book"
Peter Cooper,
rubyinside.com

Completely updated for Ajax and Web 2.0

"A must-have reference"
Brendan Eich,
creator of JavaScript

The classic Java quick-reference