Writing

Blog

Short, focused explainers on the things that come up most often in the comments.

3 min read

Bean Validation in Spring Boot

Where @Valid actually takes effect, why your constraints are being ignored, and how to write a custom one.

  • Spring Boot
  • Java
  • REST

3 min read

Spring Boot Profiles and Configuration, Properly

Where Spring actually reads config from, how profiles layer on top, and why secrets never belong in application.properties.

  • Spring Boot
  • Configuration
  • DevOps

3 min read

The N+1 Query Problem in Spring Data JPA

How one innocent-looking getter turns a single query into hundreds, and the four ways to stop it.

  • Spring Boot
  • JPA
  • Performance

4 min read

How HashMap Actually Works, and Why It Matters

Buckets, treeification, resizing, and the practical consequences: sizing, mutable keys, and why HashMap is not thread-safe in an interesting way.

  • Java
  • Performance