Design Patterns
-
Core Java
Java 8 Lambda Expression for Design Patterns – Command Design Pattern
In this blog I would illustrate implementing the command pattern in functional programming style using Java 8 Lambda expressions. The…
Read More » -
Core Java
Strategy Pattern in Java 8
These are two examples on how to implement a Strategy pattern design using Java 8 functional style together with Cyclops…
Read More » -
Software Development
Design Patterns in the 21st Century: The Chain of Responsibility Pattern
Here’s a thing you might not see a lot. @Test public void hungryHungryPatrons() { KitchenStaff alice = new PieChef(); KitchenStaff…
Read More » -
Core Java
Design Patterns in the 21st Century: The Adapter Pattern
This is part three of my talk, Design Patterns in the 21st Century. The Adapter pattern bridges worlds. In one…
Read More » -
Core Java
Design Patterns in the 21st Century: The Abstract Factory Pattern
This is part two of my talk, Design Patterns in the 21st Century. This pattern is used everywhere in Java…
Read More » -
Core Java
Functional Factory Pattern
Do you want a REALLY quick way to make a Factory object? Then lambdas or other function-passing is what you…
Read More » -
Core Java
How The Decorator Pattern Saved My Day
At work I am dealing with a huge Java code base, which was developed over the course of more than…
Read More » -
Core Java
The Serialization Proxy Pattern
In my last post, I talked about serialization in general. This one is much more focused and presents a single…
Read More » -
Core Java
The Decorator Pattern With Java 8
In a recent post I described how the decorator pattern saved my day. I gave a small code snippet which…
Read More »