Java

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

Bean Validation Anti-Patterns

Bean Validation is the de-facto standard for implementing validation logic in the Java ecosystem and it’s a great tool to have around.

Read more

Pollution-Free Dependency Management with Gradle

Remember the days when we had to manually download every single JAR file that our project needed to run? And not only the JAR files we directly depended upon, mind you, but even those JAR files that our dependencies and our dependencies' dependencies needed to work!

Read more

Maven Scopes and Gradle Configurations Explained

table th:first-of-type { width: 40%; } One of the key features of a build tool for Java is dependency management.

Read more