-
Core Java
ThreadLocal in Java – Example Program and Tutorial
ThreadLocal in Java is another way to achieve thread-safety apart from writing immutable classes. If you have been writing multi-threaded…
Read More » -
Enterprise Java
All Your Tests Belong to You: Maintaining Mixed JUnit 4/JUnit 5 and Testng/JUnit 5 Test Suites
If you are seasoned Java developer who practices test-driven development (hopefully, everyone does it), it is very likely JUnit 4…
Read More » -
Core Java
Java Extension Methods
Whither Extension Methods? Apparently, there’s a java dialect called XTend which does this, but there’s no obvious equivalent of extension…
Read More » -
Software Development
Composition over Permutations
I’m in the process of reworking an open-source library to make it operate more easily for my use cases. The…
Read More » -
Software Development
Not That Sort of Code
Following recent discussion online, I’d like to make what I consider to be an important statement about code. The purpose…
Read More » -
Core Java
Overview of implementing Distributed Locks
As we know, locks are generally used to monitor and control access to shared resources by multiple threads at the…
Read More » -
Core Java
JDK 16: Checking Indexes and Ranges of Longs
In my last post, I described the day period support added with JDK 16 Early Access Build 25. That same…
Read More » -
Core Java
Static Factories are Great!
Every now and then I jump on classes with multiple constructors or classes that are rigorous to work with. Let…
Read More » -
Enterprise Java
Spring Web MVC
Spring MVC is a web framework based on the model–view–controller pattern. It is based on the Spring principles and supports…
Read More »