We discuss some of the most common design patterns in Java and how they can help you solve common coding issues. Learn more. A design pattern is a well-established and documented solution to a common ...
Some language features are just plain ugly. The first time you see them, you say to yourself, “If I ever have to use that, there’s something wrong with my design.” And most of the time you’d be right.
In my two immediately previous posts, I looked at reducing the number of parameters required for a constructor or method invocation via custom types and parameter objects. In this post, I look at use ...
Java SE 14 (March 2020) introduced a limited form of pattern matching as a preview feature, which becomes a permanent feature in Java SE 16 (March 2021). The first phase of pattern matching is limited ...