Replace Docker for Windows with Podman?

In the recent months - or years - an alternative implementation of the Open Container Inititive (OCI) - Podman - has gained traction, especially as large Linux distributors (RedHat, Suse) decided to drop Docker in favor of Podman. Not to mention, that podman is one of the container engines used by Kubernetes. But how is the situation on Windows?

In this article I want to shed some light on how to set-up Podman on Windows and discuss whether it’s ready to drop Docker on Windows as well.

Continue reading

Jenkins: How to use shared libraries for configuration

This article discusses how Jenkins pipelines that use shared libraries can be be updated structurally upon changes on the shared library without running a full build.

Continue reading

Coverage with Jacoco and Sonarqube

In most projects I have worked in, Jacoco was used as tool to determine code coverage. The configuration is fairly easy as it plugs into the JVM that runs the tests using an agent that tracks the invocations. In maven, this JVM is forked by the surefire plugin and the parameters are auto generated. The setup is well documented so in this blog post I want to shed some lights on the internals of Jacoco and Sonarqube and how both calculate their coverage metrics. I did some code digging, and I’d like to share my insights. The following information is a compilation of what I found out.

This article is inspired by this question on StackOverflow, which is basically about how Sonarqube and Jacoco calculate coverage.

Continue reading

How to write good code

A couple of days ago I stumbled over a tweet on Twitter. It contained a list of catchy phrases what makes good writing. Developers also write, but more code than prose texts, so I wondered how applicable this list is to coding as well. So I came up with my own list, which might be a bit less catchy but is hopefully a usefully assembly of good coding practices or guiding principles.

Continue reading

Light Bulb Methods

While writing the article on “How to write good code”, I used the term “light bulb methods” and I want to explain bit more in detail, what I meant with this style of method structuring.

Continue reading

Cognito based authentication for CloudFront protected resources

Cognito is a relatively new offering proving Identity Management for Apps and Services, including profile management and multi-factor authentication. CloudFront is the Content Delivery Network service provided by Amazon Web Services. CloudFront offers publicly accessible content as well as private content. Private content can be access using either signed URLs or Signed Cookies. Cognito however generates OAuth access tokens. This article describes how to build a service for creating Signed Cookies for Cloudfroint using access control provided by Cognito.

Continue reading

Modular Router Design for Vert.x Microservices

When developing micro services with the Vert.x framework I stumbled more than once over the question how to organize Verticles and achieve a modular design. Vert.x is unopinionated allowing various ways of accomplishing this. In this article I’d like to discuss two options for building modular services.

Continue reading

Coding Style for high productivity and lesser bugs

In this year’s JCrete unconference I attended a very interesting session about Bugs and Coding style led by Cliff Click (The full discussion can be found here). He started about his experience as a high-performance high-professional coder, about development speed and ratios of bugs in new code, refactored code and bug-fixed code and the implication of this to the code style. Speed of Coding and Rate of Bugs His views and experience are especially interesting as he wrote huge parts of the HotSpot JVM, i.

Continue reading

Building Low-Cost IoT with NodeMCU and Vertx MQTT

On this year’s JCrete conference I learned during the hackday about the NodeMCU board, which is an impressive low-cost alternative to an Arduino. It uses the 80 MHz ESP8266 chip that includes WiFi support out of the box. In this article I’d like to describe how to make a simple temperature and pressure sensor device that publishes data via MQTT to a handler implemented using the reactive Vert.x framework. The hardware for the solution costs no more than $15.

Continue reading