Sometimes is the small things… Like finding a new method that does exactly what you were needing.Read on →
￼ This week I needed to test a class that depended on a method from an static class. I saw we were using [PowerMock] and thought to myself: “Well this sounds pretty common, I bet it’s easy to accomplish”. But of course I ran into half a dozen issues before I was able to make it work. Here’s my two cents to make your experience easier than mine.Read on →
We were having a [race condition] on a server which was “fixed” by adding an sleep to the thread to check again later. Yes, it sucked, so I decided to make something more sophisticated and went looking for a library to handle retryies with multiple strategies. That’s when I first read about [Guava Retrying]Read on →
Value types is a fancy name for those classes where you have to implement
hashCode(), and usually
toString(). You’ve probably wrote thounsands of those classes, but have you ever wonder why do you have write almost 50 lines of code to express such a common concept?