Mocking Time in Java: A Simple Way to Test Time-Dependent Logic
Anyone who writes Java has probably run into this situation: business logic that depends on the current time — an order expires after 30 minutes, a voucher is only valid during …
Anyone who writes Java has probably run into this situation: business logic that depends on the current time — an order expires after 30 minutes, a voucher is only valid during …
A small pitfall that once cost me a fair bit of debugging time. Problem When using EntityManager.merge() to save a new entity, many people are in the habit of writing: 1 2 …
A quick tip I figured out a long time ago and am finally getting around to sharing. Problem When running ./gradlew test, tests occasionally crash mid-run with an OutOfMemoryError …
Enjoy Newsletter #94. Inside the Claude Code source After the Claude Code CLI source code was inadvertently exposed in late March 2026, Haseeb Qureshi read through its core modules …
Enjoy Newsletter #89. Hybrid Quota-Linear Rate Limiter Tony Finch points out an underappreciated quirk of linear rate limiters like the leaky bucket or GCRA: they are slow to clamp …