RSSAmplifier

Blog

Mikołaj Kamiński

My personal page and blog about software development

mikolaj-kaminski.comRSS feed ↗10 posts

Latest posts

How to test typed HTTP clients in .NET 6?

Strongly typed HTTP clients are very useful and convenient. Here's how to test them without sacrificing the advantages of dependency injection.

I couldn’t debug the code because of my name

Some time ago, I finally managed to switch from Visual Studio to JetBrains Rider at work. Finally, because I used to work a lot with Rider before, and I really like this IDE. Unfortunately, I ran into some annoying problems with docker-compose debug configuration.

My favorite way to handle configuration in .NET Core

I am writing this blog post because I often see a configuration support proposal that uses hardcoded strings. Here’s a way to avoid it.

An elegant way to validate MediatR commands and queries

Today I would like to show you a really cool way to validate MediatR commands and queries using FluentValidation.

Easy service registration in .NET DI containers using Scrutor

I like to make my life easier. If I can automate a process, I’d love to do it. It is no different in programming. Today I would like to show you how to automate dependency registration in DI container.

Do we have to await every single C# async method?

Do we have to await each C# async method? Does this have any effect on code performance? Let's check it out!

How to merge JSON documents in .NET Core and .NET 5?

Let’s say we have two JSON documents that we would like to merge. How can this be achieved using Newtonsoft.Json and System.Text.Json libraries?

ASP.NET Core, Newtonsoft JSON serializer and DateTime handling issue

Today I encountered an interesting case. I got a report that “something changes the date format while processing data”. I started debugging our distributed system looking for the source of the problem. It took me a while, so I’d like to share this story today, so you don’t have to waste your time.

Extension methods in C# and Ruby

Extending classes with new methods is a pretty useful feature of object-oriented programming languages. However, implementation of extension methods can be more or less simple and elegant. Today I would like to compare implementation of extension methods in C# and Ruby.

Why do I find Ruby sexy?

I am a full time .NET developer, but I have been interested in Ruby for some time. Not very professional, but I liked this technology very much. I would like to share why I think so.