C# Tip: use Miniprofiler instead of Stopwatch to profile code performance 2022-09-13 Last updated: 2024-10-21 2 min read CSharp Miniprofiler is a nice tool to profile your code in a smart way. Continue reading
How to propagate HTTP Headers (and Correlation IDs) using HttpClients in C# 2022-08-02 Last updated: 2026-03-04 10 min read CSharp dotnet Propagating HTTP Headers can be useful, especially when dealing with Correlation IDs. It’s time to customize our HttpClients! Continue reading
Clean Code Tip: F.I.R.S.T. acronym for better unit tests 2022-07-26 Last updated: 2023-10-04 4 min read Clean Code Good unit tests have some properties in common: they are Fast, Independent, Repeatable, Self-validating, and Thorough. In a word: FIRST! Continue reading
5 tricks every C# dev should know about LINQPad 2022-07-19 Last updated: 2026-03-04 5 min read dotnet CSharp LINQPad is one of the tools I use daily. But still, I haven’t used it at its full power. And you? Continue reading
C# Tip: SelectMany in LINQ 2022-07-12 Last updated: 2024-10-21 2 min read CSharp Linq SelectMany is one of the LINQ methods I’ve used the least. I couldn’t get it! Turns out it was actually incredibly simple. Continue reading
How to solve InvalidOperationException for constructors using HttpClientFactory in C# 2022-07-05 Last updated: 2024-11-25 4 min read CSharp dotnet A suitable constructor for type ‘X’ could not be located. What a strange error message! Luckily it’s easy to solve. Continue reading
Clean Code Tip: Avoid subtle duplication of code and logic 2022-06-28 Last updated: 2023-10-04 2 min read Clean Code Duplication is not only about lines of code, but also about data usage and meaning. You should avoid that kind of duplication. Continue reading