Hi 👋, I'm Anders

I'm passionate about creating software that solves problems and brings meaningful value to the world.

Posts

2024/05/09

How to use environment variables in Next.js

Using environment variables in Next.js can be very confusing. Searching around the web it doesn't feel like anyone is solving the issue of...

Read more

2024/02/10

How to hook into xUnit.net test session startup and teardown

Usually you would use a test fixture in xUnit.net when wanting to run logic before and after tests have run. But what if you want to hook into when a test session starts and ends? A test session...

Read more

2024/02/07

How to disable test parallelization in xUnit.net

In some case you may find that you need to disable parallelization for running tests when using xUnit.net. This guide will show you multiple ways to do this, so you can pick which approach works best for you.

Read more

2023/11/14

Source code release of My Next.js MDX blog template!

I've finally released the source code my MDX blog at andersmadsen.dev. You can get the code here. I've stripped it of my content, so it's ready for yours 🙂.

Read more

2023/11/07

How to dynamically build a search index for a Next.js blog based on MDX files (Next.js)

While creating my blog I ran into some issues implementing the search functionality. After fighting these issues I finally landed on a solution that I will be presenting in this article...

Read more

2023/10/24

How to use Material 3 to kickstart a frontend project (with Figma and Next.js)

I use the Material 3 Theme Builder in Figma to kickstart my design and development process. Using this tool I am quickly able to generate a theme that I...

Read more

2023/09/23

How I built my own blog from scratch (Using Next.js, MDX and Vercel)

Hi! I’ve decided to create my own website for hosting my blog posts and guides. The website is currently live over at andersmadsen.dev. This article explains why and how I did it. I hope this article provides useful insight or inspiration to you. Let’s dive in 🤿.

Read more

2023/09/10

How to set up Terraform remote state for a project in Azure

When you use Terraform locally you can potentially store sensitive information in the state. This information is not encrypted which means that passwords and such are fully retrievable by anyone with the state files...

Read more

2023/06/04

How to Avoid Multiple onClick Events on Jetpack Compose Buttons

If you have worked with Jetpack Compose, you may have encountered the issue of multiple onClick events being triggered by a single button press. This can lead to unexpected behavior and crashes, frustrating both you and your users. In this article, we will explore solutions to...

Read more

2022/06/04

How to Avoid Navigating to the Same Route Multiple Times in Android (Jetpack Compose)

When working on an Android application, it’s common to have a scenario where you want to avoid navigating to the same route multiple times on button presses. For example, let’s say we have a button on the home screen that takes you to a profile page. If the user taps the button repeatedly, we...

Read more