Another Crazy JSR: And This Time They Aren’t Kidding!

Thursday, May 22nd, 2008 by Enrico

You might remember my post about JSR-666 from April, where I asked whether the funny proposals to extend Java (for example, by adding a yoda keyword) were just a joke or a thinly veiled statement about the dangers of trying to shoehorn features into Java. So imagine my surprise when I saw another horrific [...]

Checking Your Assumptions

Wednesday, April 2nd, 2008 by Enrico

Jeff Atwood recently wrote about what he calls The First Rule of Programming: it’s always your fault. That is, we should resist the temptation to blame the OS, the tools, the framework, and other technologies when the problem might still lie with our own code. To explain some of the merit in this [...]

JSR-666: Elaborate Joke or Profound Statement?

Monday, March 31st, 2008 by Enrico

We just recently caught wind of some proposed “extensions” to Java under JSR-666. One of them in particular had us all laughing and that was the yoda keyword. Here’s example code showing how this new keyword would be used:
yoda (UnsupportedEncodingException) {
String s = new String(byteArray, “UTF-8″);
}
I didn’t quite get [...]