Open in app

Sign In

Write

Sign In

Ludvig Westerdahl
Ludvig Westerdahl

90 Followers

Home

About

Published in Javarevisited

·Sep 19, 2021

Making Regex your friend in Java

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. I believe it can definitely be over-used…

Java

5 min read

Making Regex your friend in Java
Making Regex your friend in Java
Java

5 min read


Sep 18, 2021

Succeed by avoiding being dumb

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…

Software

2 min read

Succeed by avoiding being dumb
Succeed by avoiding being dumb
Software

2 min read


Published in Javarevisited

·Sep 4, 2021

When constructors aren’t doing it for you, use a Builder

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. …

Java

4 min read

When constructors aren’t doing it for you, use a Builder
When constructors aren’t doing it for you, use a Builder
Java

4 min read


Published in Javarevisited

·Aug 30, 2021

Back to the basics of Java — Part 2: The JAR

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. Back to the basics of Java — Part 1: Classpath My favourite programming language has always been Java, coincidentally it was also my first language I ever used. If…ludvigwesterdahl.medium.com

Java

6 min read

Back to the basics of Java — Part 2: The JAR
Back to the basics of Java — Part 2: The JAR
Java

6 min read


Published in Javarevisited

·Aug 30, 2021

Back to the basics of Java — Part 1: Classpath

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…

Java

5 min read

Back to the basics of Java — Part 1: Classpath
Back to the basics of Java — Part 1: Classpath
Java

5 min read


Aug 20, 2021

Some tips for Microbenchmarking in Java

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…

Java

2 min read

Some tips for Microbenchmarking in Java
Some tips for Microbenchmarking in Java
Java

2 min read


Published in CodeX

·Aug 19, 2021

Let’s talk about Java/JVM flags

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…

Java

5 min read

Let’s talk about Java/JVM flags
Let’s talk about Java/JVM flags
Java

5 min read


Published in Javarevisited

·Aug 18, 2021

Some thoughts on using LinkedList in Java

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. …

Java

3 min read

Some thoughts on using LinkedList in Java
Some thoughts on using LinkedList in Java
Java

3 min read


Published in CodeX

·Aug 17, 2021

Method inlining in Java

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…

Java

3 min read

Method inlining in Java
Method inlining in Java
Java

3 min read


Published in CodeX

·Jun 20, 2021

String Deduplication in Java

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…

Java

3 min read

String Deduplication in Java
String Deduplication in Java
Java

3 min read

Ludvig Westerdahl

Ludvig Westerdahl

90 Followers

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

Following
  • Shu Hasegawa

    Shu Hasegawa

  • Tim Denning

    Tim Denning

  • Sheetal

    Sheetal

  • Atit Patel

    Atit Patel

  • Henrique Melo

    Henrique Melo

See all (160)

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech