Maven Best Practices

By Craig P. Motlin On August 20, 2011 · Leave a Comment

Always use the maven-enforcer-plugin Enforce dependency convergence Otherwise it’s possible that you depend on two different jars which both depend on log4j. Which one gets used at compile time depends on a set of rules that you shouldn’t have to remember. They can both (!) get exported as transitive dependencies. Require plugin [...]

Continue Reading

How to set up the rxvt terminal for Cygwin

By Craig P. Motlin On May 19, 2011 · 3 Comments

Download and run the Cygwin setup file.

Select Install from Internet.

Enter C:\cygwin as the Root Directory.

When you get to the package list, search for rxvt and click the word skip so that it changes to a version number.

Add any other packages you want. I always install at least these:

git git-completion [...]

Continue Reading

How to do Version Numbers

By Craig P. Motlin On November 28, 2010 · Leave a Comment

Motivation

Why do we bother with multi-part numbers at all? Why not just use use a single revision number, like version 123? The parts of a version number communicate the magnitude of the change between the two versions. In the case of a library, this translates to how difficult the upgrade will be, which in [...]

Continue Reading

Binary and Source Backwards Compatibility

By Craig P. Motlin On November 26, 2010 · 2 Comments

It’s pretty easy to break binary and source compatibility simultaneously. Remove one parameter from a public method or delete a method entirely and no existing code that used the method will compile or run. But how can we break just binary or just source compatibility but not both?

Continue Reading

Tabs vs. Spaces

By Craig P. Motlin On November 4, 2010 · 6 Comments

… and why I canโ€™t just let it go.

Whitespace is ignored by the compiler so it’s purely for readability. It’s there for you. Variable names have meaning and describe the intention of code. Similarly, whitespace describes the structure of a program.

Continue Reading

Risk Calculator

By Craig P. Motlin On December 7, 2008 · Leave a Comment

Run

Launch Risk Calculator

Additional Information

Subversion repository
Javadoc
Old releases

Continue Reading

Configuration (dot) files

By Craig P. Motlin On September 7, 2008 · Leave a Comment

These are files I used to configure my command line environment, plus the scripts used to generate these pages. I’m always looking to improve my setup so please send me any useful tips.

Continue Reading

Ant Timer

By Craig P. Motlin On September 7, 2008 · Leave a Comment

The Ant Timer is a plug-in that prints out diagnostic messages when ant targets and tasks take longer than the configured amount of time.

Continue Reading

Universal toString()

By Craig P. Motlin On September 6, 2008 · Leave a Comment

UniversalToString is a java class that prints out the internal state of an object using reflection. The UniversalToString class builds a String by recursively traversing the contents of an object and printing out the names, types, and values of all of its fields.

Continue Reading
gipoco.com is neither affiliated with the authors of this page nor responsible for its contents. This is a safe-cache copy of the original web site.