AI – Why do AI tools have different Models?

By | 22/01/2025

In this post, we will see why the AI tools have different Models and how we can use them.In details, we will see the Models present currently (December 2024) in ChatGPT, Gemini Advanced and Claude.But first of all, why are there different Models in the same AI agent?The AI platforms offer multiple models to balance… Read More »

Category: AI

Design Patterns – Mediator

By | 08/01/2025

In this post, we will see what is the Mediator pattern, why we should use it and then, we will implement all CRUD operations for an object “Book” with a Minimal API using MediatR, a popolar .NET library that implements this pattern.But firsrt of all, what is Mediator?“The Mediator pattern is a design pattern that… Read More »

Unit Test – How to test Azure Functions

By | 18/12/2024

In this post, we will see how to create Unit Test for an Azure Function named “GetListInt”, using Moq, xUnit, and Fluent Assertions.This function is triggered by HTTP requests and takes two query parameters: to and Type. Based on these inputs, it generates a list of integers that are either odd or even, depending on… Read More »

AI – How to write an effective Prompt for AI

By | 04/12/2024

In this post, we will see how to write a good Prompt for a generative model like ChatGPT.But, why should we be careful to write a good Prompt when using AI?A well-structured prompt serves as a clear roadmap, guiding the AI to understand our intentions, context, and specific requirements. Without a precise prompt, we might… Read More »

Category: AI

C# – Reflection

By | 20/11/2024

In this post, we will see what Reflection is and how use it in our programs.But first of all, what is Reflection?“Reflection is part of the System.Reflection namespace in C# that enables us to analyse assemblies and types, create instances dynamically, access properties and fields, invoke methods, and even discover custom attributes. Through reflection, we… Read More »

Category: C#

C# – Management of a SQLite database

By | 06/11/2024

In this post, we will see how to create and manage a SQLite database using C#. We will create a minimal API to use the database, implement a repository pattern to abstract database operations and finally, we will write unit tests to verify our code.The SQLite database we will use is named TestDb and it… Read More »

Category: C#

Python – NumPy

By | 09/10/2024

In this post, we will see what NumPy is and how we can use it in our Python projects.NumPy is an open-source Python library that provides support for large, multi-dimensional arrays and matrices, along with a vast collection of high-level mathematical functions to operate on these arrays efficiently. It is the foundational package for scientific… Read More »