Monthly Archive for March, 2008

The New Cultural Communities

Stewart Mader links to an interview of Professor Richard Florida at Newsweek about the increasing link between place and psychology.

Florida points out that industries in large cities have become far more specialized:

New York is great in fashion design and investment banking. San Francisco’s great in software. L.A.’s great in entertainment technology. And Nashville is the epicenter of music production. So if you want to pursue a given career, it’s not just that you can make it in any big city, because now there is a smaller number of big cities that will be the key places for you.

Continue reading ‘The New Cultural Communities’

Infallible APIs

Fellow Atlassian Charles Miller recently wrote an amusing post about methods and constructors in Java that declare a checked exception, but can be called in a way that is required by the specification not to fail. A common example involves string encodings:

try {
    s = new String(byteArray, "UTF-8");
} catch (UnsupportedEncodingException e) {
    throw new Error("UTF-8 is missing??");
}

This code is the result of two conflicting factors. On one hand, since the constructor in question takes an arbitrary character encoding, the case of the encoding being unavailable must be taken into account. On the other hand, 90% of code that calls this constructor will be explicitly invoking a character set that is required to be provided with the Java Runtime Environment, and its absence would be an error serious enough to justify terminating the VM entirely.

The unnecessary exception-handling code is ugly, and obscures the actual intent of the method in which it appears. Charles jokingly proposes adding a “yoda” statement to Java to tell the JVM, “do, or do not; there is no try.”

Continue reading ‘Infallible APIs’

Escape

Escape

After working on it for over six months, I’m happy to finally announce my new techno/electro DJ mix, Escape.


Escape (download)


Continue reading ‘Escape’