Tag Archives: libraries

Testing equals() with Guava

I’ve long held the opinion that Guava belongs on every Java classpath because its design and the quality of its implementation surpass other comparable utility libraries (and sometimes even the JDK). Guava’s testlib is pretty cool, too, even though it’s … Continue reading

Posted in java | Tagged , , , | Leave a comment

Simple Web Services With Bottle

Recently I rediscovered Bottle, a Python-based micro framework for web applications. Bottle gives you full control over your URLs, has a simple built-in templating engine and a lot of other commonly used stuff. It takes you five minutes to get … Continue reading

Posted in python | Tagged , , , | 2 Comments

Writing Hamcrest Matchers

JUnit 4 introduced a fancy DSL based on the Hamcrest framework for expressing assertions. JUnit ships with the most important matchers and you can always add Hamcrest to your classpath if you need more. Sometimes no existing matcher fits your … Continue reading

Posted in java | Tagged , , | Leave a comment

JUnit: Using External Resources

Many integration test cases need access to external resources like files or databases. Dealing with external resources is always messy because you have to set up state and tear it down later. Since JUnit 4.7, there’s a mechanism that makes … Continue reading

Posted in java | Tagged , , , | 2 Comments

The Future of python-musicbrainz2

I started the python-musicbrainz2 project in January 2006 as the first client library to the newly designed MusicBrainz XML web service. It has been my first Python project and I learned quite a lot in the process. Now MusicBrainz is … Continue reading

Posted in python | Tagged , , | Leave a comment

Google Gollections 1.0

The guys at Google took their time, but the much anticipated Google Collections 1.0 have finally been released. I expect this library to change the way we write our Java code (at least it did that to mine), so I … Continue reading

Posted in java | Tagged , , | Leave a comment

Plotting with Matplotlib

For a long time, Gnuplot has been my tool of choice for plotting diagrams. The diagrams it produces out of the box look very scientific, but it takes a lot of tweaking to produce something that’s visually pleasing. I got … Continue reading

Posted in python | Tagged , , , | 2 Comments