Jasen discovered recently that this coming Friday, Feburary 13th, at 18:31:30 EST it will be exactly 1234567890 in Unix time. As an added bonus it’ll be Friday the 13th! So of course we’ve decided to celebrate. Now how exactly do i go about creating a zombie Ken Thompson costume?
I’ve fallen in love with Java’s instanceof; it makes me feel a bit more at home when i’m away from my beloved Ruby. I recently ran into a situation where i needed to determine if an object implemented a specific interface and it turns out that instanceof is just the tool to do it.
Vector foo = new Vector();
boolean comparable = foo instanceof Comparable; // false, Vector doesn't implement Comparable
boolean serializable = foo instanceof Serializable; // true, Vector does implement Serializable |