C# Tip: IFormattable interface, to define different string formats for the same object
Same object, different string representations. How do we achieve it in a standardised way? Continue readingIs 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? Continue readingDavide's Code and Architecture Notes - Cache Expiration vs Cache Eviction (and Eviction Policies)
Caching helps your applications be more performant. However, depending on the cache size, you’ll need to sacrifice some items to make space for others. Let’s see some strategies. Continue readingHow to create custom snippets in Visual Studio 2022
A simple way to improve efficiency is knowing your IDE shortcuts. Let’s learn how to create custom ones to generate code automatically. Continue readingC# 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!
Continue reading