Java 7’s recent release has sparked some interesting discussion, some excited by the new features, some disappointed that it’s too little too late… But this isn’t one of those internet rants about the future of Java; this is about using a language to its full extent!
Writing code is like writing poetry – do it right or you’ll end up in some anthology of shame.
Java 8 lies ahead and with it promises of native Collection support. But that’s a while away, we want it now! And with Espresso4J, a small language-augmenting library designed to put a shot of liveliness into Java syntax, we can have it now too.
A quick implementation for reading a key/value dataset from an XML document.
Today I present to you a PHP puzzler that in fact had me stumped for a day or two. I do enjoy when a language throws a curve ball; it presents an opportunity to gain insight on the mechanics and become acquainted with the nuances of the language in question.
Java 7 is now officially available as of July 28th 2011. The intent of this blog entry is to introduce the new language features. For further details, consult the Java 7 SDK. Binary Literals Underscores in Numeric Literals Strings in Switch Statements Type Inference for Generic Instance Creation Try-With-Resources Improved Exception Handling Improved Compiler Warnings and Errors When Using Non-Reifiable Formal Parameters with Varargs Methods Binary Literals [Official Docs] Long awaited, Java now allows for integral literals (byte, short, int, and long) to be expressed in binary.
Inspired by a thread on Facebook to which I contributed, a few words concerning readable code vs compact code.