Core Java
-

Throwing Exceptions – slow and ugly
This post is about a historical experience in conjunction with recently applied performance optimization techniques. Years ago I was swearing…
Read More » -

10 Subtle Best Practices when Coding Java
This is a list of 10 best practices that are more subtle than your average Josh Bloch Effective Java rule.…
Read More » -

Optional in Java 8 cheat sheet
java.util.Optional<T> in Java 8 is a poor cousin of scala.Option[T] and Data.Maybe in Haskell. But this doesn’t mean it’s not…
Read More » -

Simple and lightweight pool implementation
Object pools are containers which contain a specified amount of objects. When an object is taken from the pool, it…
Read More » -

5 Things You Didn’t Know About Synchronization in Java and Scala
Practically all server applications require some sort of synchronization between multiple threads. Most of the synchronization work is done for…
Read More » -

Safely Create and Store Passwords
Nearly every time when it comes to user profiles it is necessary to manage user credentials and thus be able…
Read More » -

Apache log4j is the leading logging framework
According to a survey from Zero Turnaround Apache log4j is the leading Java logging framework. This was actually a very…
Read More » -

Injecting Test Doubles in Spring using Mockito and BeanPostProcessors
I’m pretty sure that if you have ever used Spring and are familliar with unit testing, you have encountered a…
Read More » -

Almost named method arguments in JDK 8
Sometimes it would be really nice to have named method parameter in Java, this doesn’t look likely for a long…
Read More »


