Design Pattern: the Asynchronous Dispatcher
Today we’ll revisit a common design pattern, the Observer, and one of its derivative for multi-threaded processing: the Asynchronous Dispatcher.
Today we’ll revisit a common design pattern, the Observer, and one of its derivative for multi-threaded processing: the Asynchronous Dispatcher.
In this last post we’ll look at the functional interface formal definition and the way lambda expressions are implemented.
In this post we’ll look at conflict resolution rules for multiple inheritance introduced along with defender methods in JDK 8.
In this third post dedicated to Java 8 Lambda expressions, we’ll look at the new :: operator introduced to allow method and constructor referencing.
In this second post, we’ll look at the scoping of the this keyword inside a lambda expression and the semantic of the so called “effectively final” local variables.
This article is the first one of a serie dedicated to Java 8 Lambda expressions. The purpose is not to introduce the main concepts of lambda expressions, many blogs over there do it very well. The idea is to shed…
Read more
Today we’ll have a look into the Pipeline pattern, a design pattern inspired from the original Chain of Responsibility pattern by the GoF
Today we’ll look into a rare feature of Java: variable shadowing First, let’s define what is a shadowed field or method: A field is considered shadowed when a subclass of its declaring class declares a field with the same name…
Read more
This short article introduces the definition and usage of final variables in Java and some interesting use cases.
I’ve seen many developers struggling with subtle mutability issues in Java. This article will expose the major gotchas of object immutability.