When code is always written the way that it's written, it sometimes takes an outsider voice to question the rote.
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.… Read the rest
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.
Underscores in Numeric Literals
Strings in Switch Statements
Type Inference for Generic Instance Creation
Improved Exception Handling
Improved Compiler Warnings and Errors When Using Non-Reifiable Formal Parameters with Varargs Methods
[Official Docs] Long awaited, Java now allows for integral literals (byte, short, int, and long) to be expressed in binary.… Read the rest
Inspired by a thread on Facebook to which I contributed, a few words concerning readable code vs compact code.
When writing applications, a common scenario involves setting a variable from some external source. What immediately ensues is a check to ensure that our variable has some meaningful value.… Read the rest