Core Java
-

The Danger of Subtype Polymorphism Applied to Tuples
Java 8 has lambdas and streams, but no tuples, which is a shame. This is why we have implemented tuples…
Read More » -

JAR Hell
What is JAR hell? (Or is it classpath hell? Or dependency hell?) And which aspects are still relevant when considering…
Read More » -

Vertical and Horizontal Decorating
A decorator pattern is one of the best ways to add features to an object without changing its interface. I…
Read More » -

Dynamic Java Code Injection
In this post we’re going to look at how to dynamically load Java code into a running jvm. The code…
Read More » -

Stack safe recursion in Java
In this article, excerpted from the book Functional Programming in Java, I explain how to use recursion while avoiding the…
Read More » -

Retryable operations
In every project that I’ve worked on, there’s always a need of a certain piece of functionality: retrying an operation.…
Read More » -

Easy and Consistent Log4j2 Logger Naming
In the post Portable Logger Names with Java 7 Method Handles, I wrote about using Java 7‘s method handles to…
Read More » -

Common misconception: How many objects does this create?
Overview A common question is how many objects or how many Strings does a section of code create. Often the…
Read More » -

Creating sample HTTPS server for fun and profit
Often during development or/and testing against real-life scenarios we, developers, are facing a need to run a full-fledged HTTPS server,…
Read More »
