ObservableCollection is a data type that allows you to react when an item is added or removed from the collection. Let’s learn more!
Same object, different string representations. How do we achieve it in a standardised way?
A simple way to improve efficiency is knowing your IDE shortcuts. Let’s learn how to create custom ones to generate code automatically.
You have a collection of items. You want to retrieve N elements randomly. Which alternatives do we have?
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.
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.
Non-functional requirements. How can you ensure you meet them? Let’s understand SLO, SLA, and SLI, and how they affect your SDLC.
Average teams aim at 100% Code Coverage just to reach the number. Great teams don’t. Why?
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 way?
In my opinion, Unit tests should be well structured and written even better than production code. In...
Now you can't run your application because another process already uses the port. How can you find that process? How to kill it?
When working with local files, you might need to open, create, or update Zip files. In this article,...
When developing any API application, whether it is a monolith, a microservice, a distributed system,...
Model validation is fundamental to any project: it brings security and robustness acting as a first...
If you need to run operations before completing a Git commit, you can rely on Git Hooks. Git hooks...
Especially when talking about microservices, many articles and videos focus on an architectural...
When handling a massive amount of requests, a system generally needs to balance the incoming load to...
The content of the blog you are reading right now is stored in a Git repository. Every time I create...
Feature Flags let you remotely control the activation of features without code changes. They help you...
When designing and building Web APIs, we should follow Postel's law to make our API more...
Say that you have an array of N items and you need to access an element counting from the end of the...
Sometimes, just a minor change makes a huge difference. Maybe you won't notice it when performing the...
Starting from .NET 6 and C# 10, we finally have built-in support for PriorityQueues 🥳 A...
A few days ago I was preparing the demo for a new article. The demo included a class with an...
Correlation IDs are values that are passed across different systems to correlate the operations...
Duplication is not only about lines of code, but also about data usage and meaning. Reducing it will...
Sometimes, while debugging, you want to check if the state of your code is still valid, or, at least,...
In a previous article, we've seen how to perform simple CRUD operations on a Postgres database by...
Needless to say, almost every application needs to deal with some configurations. There are tons of...
If you have a set of related functions, use always a coherent order of parameters. Take this bad...