Why reaching 100% Code Coverage must NOT be your testing goal (with examples in C#)Aug 28, 2024·8 min read·126
C# Tip: 2 ways to generate realistic data using BogusIn a previous article, we delved into the creation of realistic data using Bogus, an open-source library that allows you to generate data with plausible values. Bogus contains several properties and mMar 6, 2026·5 min read·2
Davide's Code and Architecture Notes - Cache Expiration vs Cache Eviction (and Eviction Policies)Aug 20, 2024·9 min read·2
C# Tip: IFormattable interface, to define different string formats for the same objectFeb 27, 2024·4 min read·4
Is Random.GetItems the best way to get random items in C# 12?You have a collection of items. You want to retrieve N elements randomly. Which alternatives do we have?Feb 13, 2024·8 min read·5
How to create custom snippets in Visual Studio 2022A simple way to improve efficiency is knowing your IDE shortcuts. Let’s learn how to create custom ones to generate code automatically.Jan 30, 2024·6 min read·16
C# Tip: ObservableCollection - a data type to intercept changes to the collection`ObservableCollection<T>` is a data type that allows you to react when an item is added or removed from the collection. Let's learn more!Jan 23, 2024·6 min read·6
How to kill a process running on a local port in WindowsNow you can't run your application because another process already uses the port. How can you find that process? How to kill it?Jan 16, 2024·3 min read·106
4 ways to create Unit Tests without Interfaces in C#One of the most common traits of C# developers is the excessive usage of interfaces. For every non-DTO class we define, we usually also create the related interface. Most of the time, we don't need it because we have multiple implementations of an in...Jan 9, 2024·12 min read·10
Davide's Code and Architecture Notes - Tracking decision with Architecture Decision Records (ADRs)When designing a system’s architecture, you have many choices to make. How can you track them? ADRs are formal documents to track the reasons behind your decisions, giving context and info about the consequences of each choice. Picture this: you are...Jan 9, 2024·8 min read·2