Kubernetes – Overview

By | 10/07/2024

In this post, we will see a brief overview of Kubernetes highlight the key components.Kubernetes, often referred to as K8s, is an open-source platform that orchestrates the deployment, scaling, and management of containerized applications. Born out of Google’s experience with running containers in production, Kubernetes has quickly become the gold standard for container orchestration, supported… Read More »

Design Patterns – Adapter

By | 19/06/2024

In this post, we will see what the Adapter Pattern is and how we can implement it.But first of all, what is the Adapter Patterns?“The Adapter Design Pattern converts the interface of a class into another interface that a client expects. It allows classes to work together that couldn’t otherwise because of incompatible interfaces. The… Read More »

Minimal APIs – Clean Architecture

By | 05/06/2024

In this post, we will see how to implement Clean Architecture with .NET Core Minimal APIs, enabling us to build applications that are both efficient and easy to maintain.But first of all, what is the Clear Architecture?Clean Architecture, proposed by Robert C. Martin (Uncle Bob), is a design philosophy that emphasizes the separation of concerns… Read More »

Python – How to manage a XML file

By | 22/05/2024

In this post, we will see how to manage a XML in Python using the “xml.etree.ElementTree” module.The “xml.etree.ElementTree” module is part of Python’s standard library, offering a simple and effective way to work with XML data. This module supports parsing XML from strings or files, navigating and searching the XML tree, and modifying or creating… Read More »

Changes to my Blog Schedule!

By | 12/05/2024

Hello everybody, I hope this message finds you well. As I continually strive to bring you the most engaging and valuable content, it’s important for me to adapt my processes to better serve this blog while balancing my personal and business commitments. Starting this month, I am transitioning to a new publishing schedule. Going forward,… Read More »

SwiftUI – Pie Chart

By | 08/05/2024

In this post, we will see how to create a Pie Chart using new mark type called SectorMark introduced in iOS 17.0.For this post, we will visualize a simple monthly budget allocation using different spending categories such as Housing, Food, Transportation, Entertainment, and Savings. We start to define the Data Model:[BUDGETDATA.SWIFT] Then, we define the… Read More »

Minimal APIs – Pagination with Caching

By | 01/05/2024

When building REST APIs, pagination is a crucial feature for handling large datasets efficiently.In this post, we’ll explore two different approaches to implement pagination with caching in a C# Minimal API. Obviously, we will use the same project used in all Minimal APIs’ posts.Before to see the two implementations, we have to modify the method LoadDefaultValuesDB,… Read More »

Python – Virtualenv

By | 24/04/2024

In this post, we will see how to use Virtualenv in our Python projects.But first of all, what is Virtualenv?Virtualenv is a tool to create isolated Python environments and it is useful when we need to work with specific version of libraries/packages, without affecting other projects.We start installing Virtualenv with the command: IMPORTANT: currently, I… Read More »

Unit Test – How to test Private methods in C#

By | 17/04/2024

In this post, we will see how to test a Private methods in C#, using Reflection.In unit testing, the conventional wisdom is to test the public interface of a class. This means that private methods, which are implementation details, are typically tested indirectly through public methods. However, there are times when we might want to… Read More »