Damian Garstecki

Java

Cover image for Cost of layered architecture
4 min read

Cost of layered architecture

Layered architecture is one of the most popular choices in object‑oriented systems, and for good reason. When done right, it provides great separation of concerns, making each layer replaceable without the need to transform everything around it. But layers require a lot of additional models. In this …

architecture performance java
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