Monthly Archives: May 2007

This is why God invented user comments sections

Check this movie out… Funky Monkey: He’s one high tech super chimp. Plot: Boy genius Michael Dean (Adkins) teams up with a super-talented chimpanzee and his caretaker (Modine) to take down an animal testing lab. In exchange the scientist gives the boy some pointers on the girl of his dreams. Starring: Gilbert Godfried. I know [...]

Posted in To Be Categorized | Tagged | 1 Comment

Functional Code Win of the Day

A method that takes the non-null values in the provided list. Was: private static final <A> List<A> filterNullsFrom(final List<A> list) { final List<A> out = new ArrayList<A>(list.size()); for(final A elt : list) { if(elt != null) { out.add(elt); } } return out; } Is: import static org.apache.commons.collections.CollectionUtils.select; import static org.apache.commons.collections.PredicateUtils.notNullPredicate; … private static final <A> [...]

Posted in To Be Categorized | Tagged | 8 Comments

My Newest Insight into the Generics Controversy

Okay, I’ve had some quality time with Java5 at my newest gig, and I’m starting to understand the great controversy behind Java generics. There was a particularly painful insight I just had that has officially flipped me from stalwart supporter to reluctant supporter, and I’d like to share that with the world so they don’t [...]

Posted in Classic, To Be Categorized | Tagged , , | 13 Comments
  • Categories