Creează un cont pentru a te abona la acest blog și a-i urmări articolele pe pagina Lectură.
-
When designing a system’s architecture, you have many choices to make.
-
Small changes sometimes make a huge difference.
-
C# devs have the bad habit of creating interfaces for every non-DTO class because «we need them for mocking!».
-
Learn how to organize similar unit tests using the TestCase attribute in NUnit!
-
Learn how to zip and unzip compressed files with C#.
-
You should always put a limit to the number of incoming requests.
-
Learn how to integrate Oh My Posh, a cross-platform tool that lets you create beautiful and informative prompts for PowerShell.
-
As you know, you should always validate input models.
-
A Git commit represents the status of a system.
-
API Gateways are often a component of a microservices architecture.
-
Learn how to use Feature Flags in ASP.NET Core apps and read values from Azure App Configuration.
-
Sometimes just a minor change can affect performance.
-
Feature Flags are a technique that allows you to control the visibility and functionality of features in your software without changing the code.
-
«Consistency, Availability, and Partition tolerance.
-
Integration Tests are incredibly useful: a few Integration Tests are often more useful than lots of Unit Tests.
-
Customizing the behavior of an HTTP request is easy: you can use a middleware defined as a delegate or as a class.
-
ASP.NET allows you to poll Azure App Configuration to always get the most updated values without restarting your applications.
-
If you need to handle lots of incoming requests, you should manage the incoming traffic by balancing the load across different servers.
-
Centralizing configurations can be useful for several reasons: security, consistency, deployability.
-
When writing unit tests, there are smarter ways to check if two objects are equal than just comparing every field one by one.
-
By default, you cannot use Dependency Injection, custom logging, and configurations from settings in a Console Application.
-
Testing Pyramid and Testing Diamond are two ways of managing automated tests.
-
There are several ways to handle configurations in a .NET Application.
-
We all use switch statements in our code.
-
Downloading a file from a remote resource seems an easy task: download the byte stream and copy it to a local file.
-
Interpolated strings are those built with the $ symbol, that you can use to create strings using existing variables or properties.
-
A system should be robust: it should be able to resist change and, well, not generate regressions.
-
Shorter code is often easier to read.
-
Health Checks are fundamental to keep track of the health of a system.
-
Lists have an inner capacity.
-
Elasticity and Scalability: two important Architectural attributes, similar but quite different
-
By using list patterns on an array or a list you can check whether a it contains the values you expect in a specific position.
-
Using Conventional Commits you can define a set of rules useful for writing meaningful commit messages.
-
In C#, nameof can be quite useful.
-
Cache-aside, Read-through, Write-through, Write-behind: quite easy on the surface, but let’s go a little deeper!
-
If you need a sequence of numbers, you can pick two ways: use a While loop, or use Enumerable.Range
-
LINQ is a set of methods that help developers perform operations on sets of items.
-
Exposing Swagger UI is a good way to help developers consume your APIs.
-
A PriorityQueue represents a collection of items that have a value and a priority.
-
Are you interested in C# 11 and .NET 7 - Modern Cross-Platform Development Fundamentals by Mark J.
-
When you need to fire synchronous events, don’t use a while(true) loop: use a Timer!
-
In a microservices architecture, an API Gateway hides your real endpoints.
-
Don’t let the reader get lost in the code details!
-
Building APIs with .NET is easy.
-
C#, as every other language, has several reserved keywords.
-
Every application relies on some configurations.
-
DRY is a fundamental principle in software development.