Davide BelloneinCode4ITDavide’s Code and Architecture Notes — Cache Expiration vs Cache Eviction (and Eviction Policies)Caching is one of the most common techniques used to improve application performance by storing some data, usually coming from external…Feb 61Feb 61
Davide BelloneinCode4ITHow to create custom snippets in Visual Studio 2022One of the best tricks to boost productivity is knowing your tools.Jan 30Jan 30
Davide BelloneinCode4ITC# Tip: ObservableCollection — a data type to intercept changes to the collectionImagine you need a way to raise events whenever an item is added or removed from a collection.Jan 23Jan 23
Davide BelloneinCode4ITHow to kill a process running on a local port in WindowsSometimes, when trying to run your ASP.NET application, there’s something stopping you.Jan 16Jan 16
Davide BelloneinCode4ITDavide’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…Jan 9Jan 9
Davide BelloneinCode4IT4 ways to create Unit Tests without Interfaces in C#C# devs have the bad habit of creating interfaces for every non-DTO class because “we need them for mocking!”. Are you sure it’s the only…Dec 12, 2023Dec 12, 2023
Davide BelloneinCode4ITHow to extract, create, and navigate Zip Files in C#Learn how to zip and unzip compressed files with C#. Beware: it’s not as obvious as it might seem!Nov 14, 2023Nov 14, 2023
Davide BelloneinCode4ITDavide’s Code and Architecture Notes — 4 algorithms to implement Rate Limiting, with comparisonYou should always put a limit to the number of incoming requests. Otherwise, you can have your systems exposed to malicious attackers…Nov 7, 2023Nov 7, 2023
Davide BelloneinCode4ITOhMyPosh and CascadiaCode not working on PowerShell?Learn how to integrate Oh My Posh, a cross-platform tool that lets you create beautiful and informative prompts for PowerShell.Oct 31, 2023Oct 31, 2023
Davide BelloneinCode4ITC# Tip: How to create Unit Tests for Model ValidationModel validation is fundamental to any project: it brings security and robustness acting as a first shield against an invalid state.Oct 24, 2023Oct 24, 2023