Damian Garstecki

Kotlin

Cover image for Crafting Gorgeous PDFs using Chromium and Playwright
5 min read

Crafting Gorgeous PDFs using Chromium and Playwright

Creating visually appealing and maintainable PDFs on the backend has always been a challenge. Traditional tools lag in support for modern HTML and CSS, leaving us with archaic table‑based designs. This guide explores using Chromium and Playwright in a Spring Boot application to produce great‑looking …

spring boot pdf chromium
Cover image for How safe is BigDecimal, really?
4 min read

How safe is BigDecimal, really?

BigDecimal is the go‑to type for holding decimal numbers. It’s used whenever high precision is required and we can’t afford rounding issues. But not everything about it is great. BigDecimal exposes a trap for developers. Let’s look at what that is and how to secure our code against it. Why do we …

java kotlin maintenance
Cover image for Why using Kotlin data classes as Entities is a bad idea
4 min read

Why using Kotlin data classes as Entities is a bad idea

Kotlin data classes have been an awesome language addition—so good that they inspired Java 14’s record classes. Kotlin data classes are a great choice to create DTOs or Value Objects, but some of their features don’t go hand in hand with JPA entities. Let’s look at why it’s a bad idea to make JPA …

kotlin jpa ddd