Recent Articles

Executing Code on Spring Boot Application Startup

Sometimes we just need to run a snippet of code on application startup, be it only to log that a certain bean has loaded or the application is ready to process requests.

Read more

Book Review: Clean Code

TL;DR: Read this Book, when… you’re new to programming and want to learn some coding best practices you’re a coding veteran and want to confirm your own coding best practices you met a “Clean Code” fanatic and want to check out if the book really is as black-and-white as they are preaching (this was my main reason to read it) Overview I guess {% include book-link.

Read more

Static Data with Spring Boot

Sometimes we need some structured, static data in our application. Perhaps the static data is a workaround until we have built the full feature that stores the data in the database and allows users to maintain the data themselves.

Read more

Hexagonal Architecture with Java and Spring

The term “Hexagonal Architecture” has been around for a long time. Long enough that the primary source on this topic has been offline for a while and has only recently been rescued from the archives.

Read more

Immutables in Java - Are Setters Allowed?

In short, no. Feel free to jump right ahead to the section on bad practices. If you want to read a bit more on the why and how of immutables, have a look at the rest of this article.

Read more

Mocking with (and without) Spring Boot

Mockito is a very popular library to support testing. It allows us to replace real objects with “mocks”, i.e. with objects that are not the real thing and whose behavior we can control within our test.

Read more