Java Constants – Not In The Interface

I was working on some code refactoring on a massive codebase when I was faced with the issue of where to put constants for the default values of business rules.  This issue has been a constant subject of design discussion in java since I can remember, and definitely over a decade for myself.  Doing “object” […]

Getting a Time Quickly From Java Calendar

We have an old legacy DB that stores time as a string.  No timezones etc.  Here’s a quick solution:

Java Long and Integer Max

If ever you forget, just pop open a groovy console and get the max values for Java’s Long and Integer objects: I use the Groovy console quite a bit.