David Kröll

David Kröll @davidkroell

About: A full-time .NET Developer with a willingness of sharing knowledge in both blogging and making things in the Open-Source world

Location:
Austria
Joined:
Nov 21, 2020

David Kröll
articles - 22 total

Switch is Faster than If (in C#)

C# does support multiple control structures such as if, else, switch, while, for (and some more)....

Learn More 11 2May 25 '22

A Time-Scoped Registration Mechanism for Microsoft.Extensions.DependencyInjection

The Microsoft Dependency Injection (DI) container provides three different types of...

Learn More 6 0Apr 18 '22

Don't use String.ToLower() in C# when comparing strings

When comparing strings, often the casing should be ignored in the comparison. Most of the times, this...

Learn More 47 11Mar 15 '22

A Simple Trick to Boost Performance of Async Code in C#

Performance is something every developer cares about. Even if most of us care about it too early,...

Learn More 11 9Feb 8 '22

Homemade DI: The How's and Why's of Dependency Injection (in dotnet)

Once upon a time, a junior developer asked himself: "What is this dependency injection thing that all...

Learn More 10 0Nov 4 '21

Strategy Design Pattern with Dependency Injection

The strategy pattern is a behavioral design pattern which lets you select an algorithm at runtime....

Learn More 13 0Sep 21 '21

Zero to Hero: Containerizing .NET 5.0 WebApis

In this guide I'd like to show the most important topics and aspects when talking about...

Learn More 41 1Jul 10 '21

What Namespace to choose for Open-Sourced .NET Frameworks?

Is there a preferred way of naming opensource libraries and frameworks in the .NET field? I've seen m...

Learn More 1 0Mar 15 '21

Custom Phone Mockups for Onyx Boox Note Air

When I'm doing mockup prototyping for user interfaces, I still prefer painting by hand rather than us...

Learn More 0 0Jan 9 '21

How to calculate correlation of financial assets?

Is there a (online) tool to calculate the correlation for financial assets? I've found some specific...

Learn More 1 0Jan 8 '21

Exploiting network devices at the data link layer with Go

Back in 2018 when I attended the networking security class at highschool, our prof introduced us to a...

Learn More 11 0Dec 14 '20

Go concurrency and sychronization - Part 3: Data pipelines

As already pointed out in the last part, I am going to refactor the notifiers and synchronization alr...

Learn More 10 0Dec 12 '20

Go concurrency and sychronization - Part 2: Refactor iteration

As I pointed out in my previous post there are several misleading design issues associated with this...

Learn More 9 0Dec 11 '20

Go concurrency and sychronization - Part 1: First approach

This intention of this series is to teach something about concurrency and synchronization in the Gola...

Learn More 15 3Dec 10 '20

A search engine - Part 5: Introducing reflection

We'd like the search engine to handle not only strings, but to store any arbitrary struct type. There...

Learn More 7 0Dec 9 '20

A search engine - Part 4: Concurrency and safety

Since our index can now be accessed from several goroutines, data races can occur, when we do not eli...

Learn More 5 0Dec 8 '20

A search engine - Part 3: Searching the index

In the last episode we completed the algorithm for adding entries to our cache and index data structu...

Learn More 7 0Dec 6 '20

A search engine - Part 2: Data pipelines

This part of my series deals with the obstacles introduces in the first part. We already have our bas...

Learn More 7 0Dec 5 '20

A search engine - Part 1: Outline and Kickoff

This series is about creating a data structure named inverted index. It is a central component in pro...

Learn More 28 0Dec 4 '20

Refactoring my first Go code

My first Golang code was published on 25th April 2018. You may have a look at it on Github. It's a SH...

Learn More 9 0Dec 3 '20

IEnumerables transferred to Golang

There is no doubt that the IEnumerable type from C# is very powerful. It's especially effective when...

Learn More 8 2Dec 2 '20

Progress indicator for console applications

Every piece of software should inform the user about it's current state and progress. For longer-last...

Learn More 7 2Dec 1 '20