Core Java
-

Java Reflection oddities with inner class constructor parameters
About Java inner classes Java allows member classes (classes that are defined inside other classes), local classes (classes that are…
Read More » -

Java 8: CompletableFuture in action
After thoroughly exploring CompletableFuture API in Java 8 we are prepared to write a simplistic web crawler. We solved similar…
Read More » -

Java 8: Definitive guide to CompletableFuture
Java 8 is coming so it’s time to study new features. While Java 7 and Java 6 were rather minor…
Read More » -

Building smart Builders
When building an API, you should always think about who is going to use it. When the API is simply…
Read More » -

Train Wreck Pattern – A much improved implementation in Java 8
Venkat Subramaniam at a talk today mentioned about Cascade Method pattern or Train Wreck pattern which looks something like: …
Read More » -

JDK 8’s Calendar.Builder
One of the defining characteristics of the brave new world of Java is the increasing prevalence of the builder pattern…
Read More » -

Template Method Pattern – Using Lambda Expressions, Default Methods
Template Method pattern is one of the 23 design patterns explained in the famous Design Patterns book by Erich Gamma,…
Read More » -

A simple application of Lambda Expressions in Java 8
I have been trying to fit in lambda expressions in the code I write and this simple example is a…
Read More » -

Rare Uses of a “ControlFlowException”
Control flows are a “relict” from imperative programming, which has leaked into various other programming paradigms, including Java’s object oriented…
Read More »
