Micrometer and Spring (Non-Boot)

Almost all of the tutorials and blog posts I found on this topic were focused on Spring Boot because, starting with version 2, it uses Micrometer as its metrics framework. However, in a particular project at work we do not have access to Spring Boot let alone a recent Spring version. Therefore, I’m explaining how to include Micrometer in your non-Boot Spring application using XML configuration.

In this tutorial I will be using Spring 5 and Java 11, so not exactly the versions I’m dealing with at work, but the concepts are the same and everything can probably be copied exactly as shown here.

Read More »

A Java “DSL“ for Simple Unit Test Data Creation

I’m a person that usually writes tests before the implementation. In the context of my backup application project this has turned out to really slow me down. But it’s not just a problem of my personal projects. It also affects my professional work. 

Here’s the issue: for some tests you need test data and generating that test data can be a tedious task, depending on the complexity. This has caused me to procrastinate on my backup app. So, one evening, after having thought about this during a workout, I grabbed my laptop, sat down in my comfy bed and wrote a “DSL” that makes creating the data much simpler. Not only is it easier to create the data now, allowing me to continue at a faster pace, it’s also much more readable and the test setup doesn’t clutter the test case anymore. This is a very important aspect of a test. What good does it to have one if, after some time, you have to update it and don’t understand what it does anymore?

Read More »

The MacBook Pro 13-inch 2018 Review

There are two posts preceding this one which are New Laptop: Windows, macOS or Linuxwhere I try to explain why I’d like to buy a laptop and what options I see for myself and Why a MacBook in Favor of Windows or Linux Laptopsthat explains why I bought the MacBook Pro that I’m reviewing here or, to turn it around, why I didn’t go with a non-Apple mobile computer running whatever operating system.

This won’t just be another review of the kind you can find on other tech or Apple focused sites. I’ll not be showing any performance benchmarks or review every aspect of the device to check off items on a check list. That horse has been beaten to death already by manymanyother sitesafter the MacBook Pro had launched in 2018. Of course, I’ll be touching on a few controversial topics like the keyboard and the Touch Bar, despite which I still decided to buy it. For the past few months I’ve been using the computer regularly and I think I got enough experience with it to be able to tell whether I like something in the long run or not. It’s not just a first-look-kind-of-hands-on. It’ll be a combination of hardware, because that’s the physical good you’re buying, software and on being an Apple user (again).

Read More »