Hey I'm Steven · .NET Developer in Zurich, Switzerland.
You want to know more about me? Checkout my LinkedIn or Github.
Also this blog is open source on Github

Recent Posts

The garbage collector in .NET

This article will talk about the garbage collector in .NET. Why do we have and need him? And why it is important to understand the behavior to know what impact on our application he has.

Read More

Preview image blogpost

Blazor with CancellationToken support

What happens when a user navigates away and still has a pending request to our server? Or what happens if we have a request which might take forever and wastes our resources?

Let's tackle these problems with a CancellationToken.

Read More

Preview image blogpost

Stop using Finalizers in C#

Finalizers (historically referred to as destructors) are in C# since its dawn of time and are used to cleanup resources. But they should not used in every use-case and can harm your applications performance.

Read More

Preview image blogpost

Tail-Recursion - Explained with the Fibonacci series

What is Tail-Recursion? We will discover this "special" form of recursion on the example of the Fibonacci series. Also we will check how much faster it is and why.

Read More

Preview image blogpost

Why are sealed classes faster in C#? And should I seal them?

In C# we can add the sealed modifier to a class to indicate that no one is allowed to derive / inherit from that class. Let's have a look at the compiler in certain scenarios what happens if you seal a class.

Read More

Preview image blogpost

Passing by value or by reference - What is faster?

When we are passing objects around we can do this either via reference or by value. What of those two methods is faster?

To answer this question we have to dive a bit info what happens exactly when you pass something around and how the other side will receive this.

Read More

ReadOnlyCollection is not an immutable collection

In this blog post we discover how we can mutate a ReadOnlyCollection to have more or less entries than its original state. Readonly does not mean it is immutable. Also we will check out the ImmutableArray.

Read More

Preview image blogpost

Is public const bad?

Is declaring a number or string as public const considered bad practice? Let's have a look what a const variable means in the first place. Let's find out and also check what are the alternatives.

Read More

Preview image blogpost

Modal Dialog component with Bootstrap in Blazor

This short blog post will show you how to utilize Bootstrap to create a small and reuseable ModalDialogComponent.

Read More

Preview image blogpost

4 Different ways of creating an array

In this blog post I will show you 4 different ways of creating an array and how they differ from each other.

Read More

An error has occurred. This application may no longer respond until reloaded. Reload x