DEV Community

Davide Bellone profile picture

Davide Bellone

Fullstack in my past, backend in my future. C# and .NET in my 💘

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

Work

Software developer

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

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: 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 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

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

4
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

4
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

9
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

3
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

4
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#

7
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

10
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

8
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

4
Comments
2 min read
Profiling .NET code with MiniProfiler

Profiling .NET code with MiniProfiler

2
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
10 things hiking can teach you as a junior developer

10 things hiking can teach you as a junior developer

4
Comments 1
6 min read
Multithreading pro and cons for beginners

Multithreading pro and cons for beginners

2
Comments
1 min read
Adventures with a copycat

Adventures with a copycat

8
Comments 3
2 min read
5 MORE things about enums in C#

5 MORE things about enums in C#

9
Comments
5 min read
First steps with Docker: download and run MongoDB locally

First steps with Docker: download and run MongoDB locally

6
Comments
4 min read
5 things you didn't know about enums in C#

5 things you didn't know about enums in C#

13
Comments 1
6 min read
Logging with Serilog and Seq

Logging with Serilog and Seq

5
Comments
8 min read
How to migrate Azure Functions v2 to v3

How to migrate Azure Functions v2 to v3

6
Comments
4 min read
loading...