Archive for July 7th, 2008

Java and Readability

Monday, July 7th, 2008

I read this cool blog post about some readability and “Functional Programming” type stuff to do in java. Looking at how much cleaner it is than calling new all the time…I wonder why something like this isn’t included in the Java standard library.

Most of the stuff is just using parameter lists to create Lists, and from there creating Hashes from two arrays of the same size (ala a zip function). The other things are mostly “fluent interfaces” and nice uses of static methods. Still…why haven’t I seen any API’s (besides EasyMock) that have this type of stuff?