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 »

Python – Decorators

By | 25/09/2024

In this post, we’ll see what Decorators are, look at some built-in decorators, and see how to create our own custom decorator.But first of all, what is a Decorator?“A decorator is a design pattern in Python that allows us to add new functionality to our existing object without modifying its structure. Decorators are implemented as… Read More »

C# – Management of a PostgreSQL database

By | 11/09/2024

In this post, we will see how to manage the PostgreSQL database created in the post “Python – Management of a PostgreSQL database”, using C#.We will define a Minimal API for managing the database using C# and Dapper, combined with the Repository Pattern. Finally, we will add the Unit Test to check that all methods… Read More »

Category: C#

Python – Management of a PostgreSQL database

By | 28/08/2024

In this post, we will see what PostgreSQL is and how to use it in Python.PostgreSQL, often referred to as Postgres, is a powerful, open-source object-relational database system with a strong reputation for reliability, feature robustness, and performance. It has been in active development for over 30 years, making it a highly mature database choice.… Read More »

Kubernetes – Kubectl

By | 07/08/2024

In this post, we will see what Kubectl is and some of the most commonly used Kubectl commands.After an overview of some commands, we will see how to use it for deploying MongoDB and a Mongo-Express on Kubernetes.But first of all: what Kubeclt is?“Kubectl is a command-line interface for running commands against Kubernetes clusters.Whether we… Read More »