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 » -
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 » -
Interface Evolution With Default Methods – Part II: Interfaces
Default methods were introduced to enable interface evolution. If backwards compatibility is sacrosanct, this is limited to adding new methods…
Read More » -
Java 8 Lambdas in One Line
If you understand this line, or better still can write this code you can pretty much say that you have…
Read More » -
7 Things You Thought You Knew About Garbage Collection – and Are Totally Wrong
What are the biggest misconceptions about Java Garbage Collection and how’s it really like? When I was a kid my…
Read More » -
A way to read properties with variable interpolation
Recently, I tried to define and read a global properties in an application server. The benefit of such property configured…
Read More » -
How to Use Java 8 Streams to Swiftly Replace Elements in a List
Imagine you have a list of items: List<String> books = Arrays.asList( "The Holy Cow: The Bovine Testament", "True Hip Hop",…
Read More » -
Java Performance Tuning: Getting the Most Out of Your Garbage Collector
What’s going on under the hood of the JVM and how Garbage Collection affects Java performance? The performance tuning world…
Read More » -
Don’t be Fooled by Generics and Backwards-Compatibility. Use Generic Generic Types
I’ve recently had a very interesting discussion with Sebastian Gruber from Ergon, a very early jOOQ customer, whom we’re in…
Read More »