Core Java
-
Simple Event Driven design
Overview Developers often ask about the performance or efficiency of a system or their code. What does this really mean?…
Read More » -
jcmd: One JDK Command-Line Tool to Rule Them All
I have referenced the handy JDK tool jcmd in several posts in the past, but focus exclusively on its usefulness…
Read More » -
DIY Annotations
Since Java 5 there have been annotations in Java. I wanted to make my own annotation just to see what…
Read More » -
Multi level grouping with streams
1. Introduction With Java 8 streams it is pretty easy to group collections of objects based on different criteria. In…
Read More » -
Parallel execution of blocking tasks with RxJava and Completable
” How parallel execution of blocking “side-effect only” (aka void) tasks became easier with Completable abstraction introduced in RxJava 1.1.1.…
Read More » -
(Ab)using Java 8 FunctionalInterfaces as Local Methods
If you’re programming in more advanced languages like Scala or Ceylon, or even JavaScript, “nested functions” or “local functions” are…
Read More » -
Parsing any language in Java in 5 minutes using ANTLR: for example Python
I like processing code for several purposes, like static analysis or automated refactoring. The interesting part to me is to…
Read More » -
Default HotSpot Maximum Direct Memory Size
In my previous blog post Improved Documentation of HotSpot Options in Java 8, I wrote about the misunderstandings surrounding the…
Read More » -
JUnit 5 – A First Look at the Next Generation of JUnit
In the beginning of February, the JUnit 5 (aka JUnit Lambda) team has published an alpha release. Since JUnit 4 is among…
Read More »