DEV Community

Davide Bellone profile picture

Davide Bellone

Fullstack in my past, backend in my future. C# and .NET in my 💘 Content creator, Microsoft MVP, public speaker.

Location Turin, Italy Joined Joined on  Personal website https://www.code4it.dev/ github website twitter website

Work

Software developer

Five Year Club
Writing Debut
Four Year Club
Trusted Member 2022
1 Week Community Wellness Streak
Three Year Club
Two Year Club
8 Week Writing Streak
One Year Club
4 Week Writing Streak
C# Tip: IFormattable interface, to define different string formats for the same object

C# Tip: IFormattable interface, to define different string formats for the same object

Comments
3 min read

Want to connect with Davide Bellone?

Create an account to connect with Davide Bellone. You can also sign in below to proceed if you already have an account.

Already have an account? Sign in
C# Tip: ObservableCollection - a data type to intercept changes to the collection

C# Tip: ObservableCollection - a data type to intercept changes to the collection

1
Comments
5 min read
How to create custom snippets in Visual Studio 2022

How to create custom snippets in Visual Studio 2022

Comments
6 min read
Is Random.GetItems the best way to get random items in C# 12?

Is Random.GetItems the best way to get random items in C# 12?

Comments
7 min read
Davide's Code and Architecture Notes - Cache Expiration vs Cache Eviction (and Eviction Policies)

Davide's Code and Architecture Notes - Cache Expiration vs Cache Eviction (and Eviction Policies)

Comments
9 min read
Davide's Code and Architecture Notes - Tracking decision with Architecture Decision Records (ADRs)

Davide's Code and Architecture Notes - Tracking decision with Architecture Decision Records (ADRs)

Comments
7 min read
Davide's Code and Architecture Notes - Introducing SLI, SLO, and SLA

Davide's Code and Architecture Notes - Introducing SLI, SLO, and SLA

Comments
5 min read
4 ways to create Unit Tests without Interfaces in C#

4 ways to create Unit Tests without Interfaces in C#

2
Comments 1
10 min read
C# Tip: Use TestCase to run similar unit tests with NUnit

C# Tip: Use TestCase to run similar unit tests with NUnit

Comments
2 min read
How to kill a process running on a local port in Windows

How to kill a process running on a local port in Windows

Comments
3 min read
How to extract, create, and navigate Zip Files in C#

How to extract, create, and navigate Zip Files in C#

Comments
5 min read
Davide's Code and Architecture Notes - 4 algorithms to implement Rate Limiting, with comparison

Davide's Code and Architecture Notes - 4 algorithms to implement Rate Limiting, with comparison

Comments
7 min read
C# Tip: How to create Unit Tests for Model Validation

C# Tip: How to create Unit Tests for Model Validation

Comments
3 min read
Pre-commit hooks with Husky.NET - build, format, and test your .NET application before a Git commit

Pre-commit hooks with Husky.NET - build, format, and test your .NET application before a Git commit

Comments
9 min read
Davide's Code and Architecture Notes - Pros and Cons of API Gateways (plus vendors comparison)

Davide's Code and Architecture Notes - Pros and Cons of API Gateways (plus vendors comparison)

Comments
9 min read
OhMyPosh and CascadiaCode not working on PowerShell? How to fix it in Windows 10 and Windows 11 Integrated Terminal

OhMyPosh and CascadiaCode not working on PowerShell? How to fix it in Windows 10 and Windows 11 Integrated Terminal

Comments
6 min read
How to integrate Feature Flags stored on Azure App Configuration in an ASP.NET Core Application

How to integrate Feature Flags stored on Azure App Configuration in an ASP.NET Core Application

1
Comments
6 min read
Davide's Code and Architecture Notes - Postel's law for API Robustness

Davide's Code and Architecture Notes - Postel's law for API Robustness

Comments
5 min read
C# Tip: Access items from the end of the array using the ^ operator

C# Tip: Access items from the end of the array using the ^ operator

Comments
2 min read
Top 6 Performance Tips when dealing with strings in C# 12 and .NET 8

Top 6 Performance Tips when dealing with strings in C# 12 and .NET 8

Comments
14 min read
PriorityQueues on .NET 7 and C# 11

PriorityQueues on .NET 7 and C# 11

2
Comments
4 min read
How to solve InvalidOperationException for constructors using HttpClientFactory in C#

How to solve InvalidOperationException for constructors using HttpClientFactory in C#

9
Comments
3 min read
How to log Correlation IDs in .NET APIs with Serilog

How to log Correlation IDs in .NET APIs with Serilog

9
Comments
6 min read
Clean Code Tip: Avoid subtle duplication of code and logic

Clean Code Tip: Avoid subtle duplication of code and logic

1
Comments
2 min read
C# Tip: Use Debug-Assert to break the debugging flow if a condition fails

C# Tip: Use Debug-Assert to break the debugging flow if a condition fails

6
Comments
2 min read
PostgreSQL CRUD operations with C# and Dapper

PostgreSQL CRUD operations with C# and Dapper

5
Comments
7 min read
3 (and more) ways to set configuration values in .NET

3 (and more) ways to set configuration values in .NET

1
Comments
6 min read
Clean Code Tip: Keep the parameters in a consistent order

Clean Code Tip: Keep the parameters in a consistent order

1
Comments
1 min read
How to parse JSON Lines (JSONL) with C#

How to parse JSON Lines (JSONL) with C#

4
Comments
4 min read
How to resolve dependencies in .NET APIs based on current HTTP Request

How to resolve dependencies in .NET APIs based on current HTTP Request

2
Comments
6 min read
C# Tip: Use a SortedSet to avoid duplicates and sort items

C# Tip: Use a SortedSet to avoid duplicates and sort items

1
Comments
3 min read
Clean Code Tip: Don't use too many method arguments

Clean Code Tip: Don't use too many method arguments

5
Comments
2 min read
Moq vs NSubstitute: syntax cheat sheet

Moq vs NSubstitute: syntax cheat sheet

3
Comments 1
5 min read
C# tip: define Using Aliases to avoid ambiguity

C# tip: define Using Aliases to avoid ambiguity

11
Comments
3 min read
Clean code tip: use the same name for the same concept

Clean code tip: use the same name for the same concept

4
Comments
1 min read
C# Tip: use IHttpClientFactory to generate HttpClient instances

C# Tip: use IHttpClientFactory to generate HttpClient instances

12
Comments 6
2 min read
8 things about Records in C# you probably didn't know

8 things about Records in C# you probably didn't know

28
Comments 2
5 min read
Clean Code Tip: Tests should be even more well-written than production code

Clean Code Tip: Tests should be even more well-written than production code

6
Comments
2 min read
From idea to publishing, and beyond: how I automated my blogging workflow with GitHub, PowerShell, and Azure

From idea to publishing, and beyond: how I automated my blogging workflow with GitHub, PowerShell, and Azure

28
Comments
9 min read
C# Tip: Convert ExpandoObjects to IDictionary

C# Tip: Convert ExpandoObjects to IDictionary

8
Comments
2 min read
3 ways to check the object passed to mocks with Moq in C#

3 ways to check the object passed to mocks with Moq in C#

8
Comments 1
4 min read
Clean Code Tip: Avoid using too many Imports in your classes

Clean Code Tip: Avoid using too many Imports in your classes

6
Comments
2 min read
How to access the HttpContext in .NET API

How to access the HttpContext in .NET API

9
Comments
3 min read
How to perform CRUD operations with Entity Framework Core and PostgreSQL

How to perform CRUD operations with Entity Framework Core and PostgreSQL

14
Comments
7 min read
Clean Code Tip: Not all comments are bad

Clean Code Tip: Not all comments are bad

5
Comments 1
2 min read
Advanced parsing using Int.TryParse in C#

Advanced parsing using Int.TryParse in C#

9
Comments
4 min read
C# Tip: How to temporarily change the CurrentCulture

C# Tip: How to temporarily change the CurrentCulture

11
Comments 1
2 min read
Clean Code Tip: AAA pattern for tests: why is it important?

Clean Code Tip: AAA pattern for tests: why is it important?

7
Comments 1
2 min read
Measuring maintainability metrics with NDepend

Measuring maintainability metrics with NDepend

6
Comments
8 min read
C# Tip: Exception handling with WHEN clause

C# Tip: Exception handling with WHEN clause

12
Comments
2 min read
CRUD operations on PostgreSQL using C# and Npgsql

CRUD operations on PostgreSQL using C# and Npgsql

4
Comments
7 min read
Code opinion: Should we trust Open Source after Log4J's issues?

Code opinion: Should we trust Open Source after Log4J's issues?

3
Comments 1
5 min read
C# Tip: use yield return to return one item at the time

C# Tip: use yield return to return one item at the time

15
Comments
3 min read
Clean Code Tip: Avoid mental mappings

Clean Code Tip: Avoid mental mappings

6
Comments
2 min read
Profiling .NET code with MiniProfiler

Profiling .NET code with MiniProfiler

3
Comments
6 min read
How to run PostgreSQL locally with Docker

How to run PostgreSQL locally with Docker

Comments
3 min read
How to test HttpClientFactory with Moq

How to test HttpClientFactory with Moq

8
Comments
7 min read
How to add logs on Console with .NET Core and Serilog

How to add logs on Console with .NET Core and Serilog

3
Comments
6 min read
[AskDev] GatsbyJS and SEO: how to manage internal routing?

[AskDev] GatsbyJS and SEO: how to manage internal routing?

Comments
1 min read
Senior software developer. What next?

Senior software developer. What next?

13
Comments 13
1 min read
loading...