If you’ve worked with JUnit and Mockito, you must be familiar with matchers. They provide a way to verify parameters during method invocation. Among many of ... (more…)
Read more »
If you have ever used Streams and Optionals in Java, you must have come across lambda expressions and functional interfaces. But how exactly are lambda expressions tied to functional interfaces? This… (more…)
Read more »
With many excellent languages to choose from on the JVM, where does Java itself fit in 2021? If you haven't been keeping an eye on Java, what have you missed? Is Java still a viable, modern option when programming on the JVM? (more…)
Read more »
BigDecimal is an immutable data type. So every method of this class should be thread safe.
But this not the case for the method toString. Calling it from multiple threads leads to strange results. (more…)
Read more »
The sad truth is the better we get at writing code, the less fun it becomes. We learn about the SOLID
principles, immutability, abstraction, composition, and maintainable code. But when we apply these
techniques in a cu... (more…)
Read more »