RSSAmplifier

Blog

{ 4Comprehension }

Human-written. Field-tested.

4comprehension.comRSS feed ↗10 posts

Latest posts

The Curious Case of Enum and Map Serialization

One of Vavr s users hit a peculiar bug recently: a serialized map containing enum keys, deserialized in another process, appeared to hold the right entries but The post The Curious Case of Enum and Map Serialization appeared first on { 4Comprehension } .

tdocker: A Terminal UI for Everyday Docker Commands

Daily Docker loop involves a bunch of operations used over and over again, and everything usually starts with docker ps. You scan the output, find The post tdocker: A Terminal UI for Everyday Docker Commands appeared first on { 4Comprehension } .

Implementing a PID Controller in Java

A long time ago, when applying to one of the unicorns, they gave me a take-home exercise that I remember to this day. The task The post Implementing a PID Controller in Java appeared first on { 4Comprehension } .

Writing JDK8-Compatible Libraries with JPMS Support

If you maintain a Java library, you ve probably felt the disconnect between supporting Java 8 and providing support for the Java Platform Module System. A The post Writing JDK8-Compatible Libraries with JPMS Support appeared first on { 4Comprehension } .

Implementing Efficient Last Stream Elements Gatherer in Java

Gatherers is the missing piece of the Stream API. So far, if we were missing a terminal method, we could always implement one ourselves by The post Implementing Efficient Last Stream Elements Gatherer in Java appeared first on { 4Comprehension } .

Avoiding Fake Drift in Unit Tests

Using fakes in tests instead of mocks has great advantages it enables behaviour verification, which enables a true TDD, where you start with capturing The post Avoiding Fake Drift in Unit Tests appeared first on { 4Comprehension } .

Accidental Time Travel with WireMock and SimpleDateFormat

Sometimes, bugs are obvious, trivial, and punch you right in the face. Sometimes, they are so subtle that you start questioning your sanity. This is The post Accidental Time Travel with WireMock and SimpleDateFormat appeared first on { 4Comprehension } .

Project Reactor: Thread-Locals and Context Propagation

The impedance mismatch between Project Reactor s thread hopping and thread-local model is still hard to grasp for many teams context propagation has consistently been The post Project Reactor: Thread-Locals and Context Propagation appeared first on { 4Comprehension } .

Has my JVM Lost Exception Stacktraces?!

Your JVM application broke and stopped logging exception stack traces? Everything is fine. Follow me! Exception Throwing Overhead Exceptions are not ordinary POJOs. I mean, The post Has my JVM Lost Exception Stacktraces?! appeared first on { 4Comprehension } .

Nulls Against Collectors

Converting a Java Stream into a List sounds trivial but can be surprising sometimes, especially when dealing with nulls and immutability. Converting Stream T to List T The post Nulls Against Collectors appeared first on { 4Comprehension } .