Code4IT

A blog by Davide Bellone

Latest articles

How to Ping an endpoint with C#

How to effectively ping an endpoint in C#? Don't use the HttpClient, when .NET provides a Ping class to perform all these operations.

2020-Nov-175 Min Read

How to integrate MongoDB with C#

MongoDB is a database based on JSON-like documents, but it can be queried using C#. We'll see how to perform CRUD operations and we'll create some advanced queries.

2020-Nov-0316 Min Read

Clean code tips - Abstraction and objects

Are Getters and Setters the correct way to think of abstraction? What are pro and cons of OOP and Procedural programming? And, in the OOP world, how can you define objects?

2020-Oct-2011 Min Read

How to generate code from OpenAPI definition with Visual Studio 2019

Wouldn't it be nice if Visual Studio could autogenerate clients for external API? It is actually possible, if they expose an OpenAPI file. Let's see how!

How to use HttpRepl to navigate API endpoints

With HttpRepl you can perform HTTP operations as they were local folders, using the CLI. Let's see how to configure it and run GET and POST operations.

10 things hiking can teach you as a junior developer

During this holiday I hiked for the first time. I found some lessons that hiking can teach junior devs