Prevent the Arrow Anti-Pattern Caused by Excessive Defensive Checks for Null List References

The Arrow Antipattern You have most likely encountered the Arrow anti-pattern when maintaining legacy code. Perhaps you have even used a poorly designed Application Programming Interface (API) that required writing overly verbose and defensive code, particularly around null object references.  This anti-pattern is very easy to recognize, as it typically consists of several nested conditional checks. These nested conditional blocks...

Read More

How to Install the Eclipse Groovy Plugin

These instructions are from the official Groovy website. Before you begin the installation, first make sure to a recent version of Eclipse.  I am using Eclipse 3.4.1 for my installation. Installing the plugin from within Eclipse: Go to Help -> Software Updates Switch to the Available Software tab Click on Add Site In the Location text box paste this url: http://dist.codehaus.org/groovy/distributions/update/ and press OK Click the...

Read More

How to install Groovy on Windows

Before installing Groovy make sure you have JDK 1.4 or above and that the JAVA_HOME system environment variable is set to the location of the installed JDK. To install Groovy: Get the latest release of Groovy from http://groovy.codehaus.org/Download Unzip to a directory like C:\groovy Create a system environment variable GROOVY_HOME whose value is set to the location from Step 2 Include %GROOVY_HOME%\bin in your PATH environment...

Read More

One small post for man…

I heard there’s this newfangled thing on the internets called a weblog or “blog”.  Being the early-adopter that I am, I figured I’d give it a whirl and see if it takes off.  I’m probably just wasting my time.

Read More