Kotlin and Spring: Working with JPA and data classes

This post has originally been published on the codecentric blog. I’ve been looking at Kotlin for a while now and since Spring will support Kotlin as a first class language from version 5 onward I wanted to see how they currently work together. Being a Java programmer you’re probably familiar with the Java Persistence API: …

Using Lombok's @Builder annotation with default values

When writing Java, I’m a big fan of Lombok, a library that helps reduce boilerplate code through code-generation. I’ve written about it in the past, if you’re not familiar with it, checkout my previous posts here and here. Recently I’ve been confronted with the problem of providing defaults for generated Builder-classes generated by the @Builder …

Retrofit: My new HTTP client of choice

There’s no shortage of options for Java developers when dealing with HTTP connections client-side. Java itself brings facilities to work with HTTP, but they are very low level and inconvenient as is Apache’s HttpClient. I’ve been using some more high-level implementations in the past, Spring’s RestTemplate is often a good fit, the same goes for …

The Transformation Priority Premise

For the first time since I moved to Nuremberg I made it to the local monthly Softwerkskammer meeting yesterday. Softwerkskammer is a german community format focusing on software crafting and it’s a great way for software developers to improve their skills. This month’s topic was The Transformation Priority Premise (TPP), an approach to writing code …

Relaunch of pamoroth.de

I have been maintaining the website of a journalist friend of mine for a number of years now. It was a homegrown blog-like webpage that worked well, but lacked a number of features. As often is the case with custom software, adding new features over time becomes more difficult, and so finally, a few weeks …