Have you ever seen this meme and sort of agree with it?

Well, then you’re like me. And I for one would like to change that. This article aims to solve that and make it into another tool available in your developer arsenal. …


How do you become a better software engineer? A better investor? Spouse? Friend?

These are difficult questions. And if you google them, I’m sure there are thousands of different tips. Like, find a mentor, improve your communication, do what the best and brightest does, etc.

Seems like a lot of…


I believe it was around 2016 when I first read the book Effective Java and I was hooked [1]. It also happened to be one of the first programming books I read and I haven’t found one that provide as much value as that one did ever since. …


In the first part I introduced a simple example explaining how to use the classpath correctly. I will use this example for this part as well, so if you did not create that yet you can copy it from the first part before proceeding if you want to follow along.

JAR


My favourite programming language has always been Java, coincidentally it was also my first language I ever used. If you’re like me, or just wants to learn more about the awesome language & technology that is Java, then this two part series is for you.

In these short series, you…


Microbenchmarking is one way of performance testing a small part of your product. Perhaps you wan’t to compare the difference between two similar algorithm implementations. The goal however is to make sure that you test the right thing.

So what can affect your output and what can you do about…


Why would you want to know this? Well, in order to be able to tune an application and identify performance issues it’s important to understand what flags are actually being used by your application and possibly why.

TL;DR
You can view the flags used in your java application in multiple ways…


This is going to be a different article as my assumption after testing some on my machine turned out to be slightly wrong. Here's what I found.

TL;DR
Use ArrayList in most standard cases where you simply add to the list and later on iterate over it. …


This article aims to introduce method inlining and demonstrate the effects.

TL;DR
Method inlining is enabled by default and should not be disabled. It is a compiler optimization that essentially replaces a method call by its content.

Let’s talk a little about compiler optimizations in Java. The HotSpot JVM just-in-time…


This article aims to explain and demonstrate what String Deduplication in Java is.

TL;DR
String Deduplication allows multiple Strings to share the same underlying character array. You can activate it as follows.

-XX:+UseG1GC -XX:+UseStringDeduplication

I’m using OpenJDK 13, as long as your using java version 9 or above you will…

Ludvig Westerdahl

I'm a software engineer with a great passion for both software and finance. Hit me up at: https://linkedin.com/in/ludvigwesterdahl

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store