Clean Code

Clean Code 1.0

Posted on

I decided to read “Clean code” by Robert C. Martin again since it is such an inspiring book. Here are  some key takeaways from the first chapter: We all know that later equals never! -> A working mess is better than nothing. I’ll clean it up later. Naah, NO WAY that’s true! In chapter 1 Uncle Bob […]

AWS

Bike power: calculate your power on the bike!

Posted on

Howdy folks, The Belgain cyclist Victor Campenaerts is attacking the world hour record on April 16 2019. This inspired me to build an app where you can calculate your own power: https://www.wattsappcycling.com/ Compare yourself with pro’s and find out how strong you are! For the technical guys and girls among you: I built an Angular frontend […]

tech

CQRS

Posted on

Command Query Responsibility Separation  Separating the writes from the reads What? CQRS really makes sense if your are doing event sourcing and event driven design. I will not go deep into that because it would lead us to far and admittedly I don’t have the expert knowledge yet in this domain.* So, separating writes from […]

tech

Regex – Regular Expression

Posted on

A regular expression or regex is a pattern defined by a group of characters to match a certain string. It can help you find patterns in a text or do replacements for specific character sequences. Here a short of overview of some common regex syntax   Examples Here are some examples of regular expressions. You […]

tech

CIDR

Posted on

CIDR stands for Classless InterDomain Routing. But to explain what it is, we require some more context. IP Addresses demystified An IP address e.g. 52.212.73.201 consist of a network part and a host part. The network part is the same for the whole network. The IP address you see here is actually a decimal representation of four […]

Java

JMH – BenchMarking

Posted on

Java Microbenchmark Harness is part of the Java 9 release. JMH takes care of JVM warm-up and code-optimization paths, making benchmarking as simple as possible and excluding as many test influences as possible. It gives you an easy way of specifying how many warmup and test iterations you want to do. It will also fork […]

Java

Reflection

Posted on

Reflection is a language’s ability to inspect and dynamically call classes, methods, attributes, etc. at runtime. Even if you do not know the type of the object at compile time, it is possible to call it’s methods, get it’s properties … at runtime. In Java Objects have the getClass() method that allows you to find the object’s class […]

tech

DNS

Posted on

How does DNS works? When you are browsing to https://nickvanhoof.com, how does your machine know where to find the address of nickvanhoof.com It turns out that when you are going to nickvanhoof.com, you are actually surfing towards the address 52.212.73.201.  The moment you type nickvanhoof.com and hit enter, how is this domain name linked to that […]