C# – Span

By | 09/08/2023

In this post, we will see what is Span<T> in C# and how we can use it to improve performance.But first of all, what is a Span<T>?From Microsoft web site:“System.Span<T> is a new value type at the heart of .NET. It enables the representation of contiguous regions of arbitrary memory, regardless of whether that memory… Read More »

Category: C#

Python – Management of a SQLite database

By | 02/08/2023

In this post, we will see how to manage a SQLite database with Python.But first of all, what is SQLite?“SQLite is a lightweight, file-based relational database management system that is widely used due to its simplicity, portability, and ease of integration into various programming languages. It provides a self-contained, serverless, and zero-configuration architecture, making it… Read More »

Minimal APIs – Authentication with JWT

By | 26/07/2023

In this post, we will see how to implement JWT (JSON Web Token) authentication in Minimal APIs.We are going to use the same project that we created in the post “Minimal APIs – Minimal APIs with .NET Core“, only changing the type of Dog.Id from Guid to int.These are all the classes: [DOGS.CS] [DATACONTEXT.CS] [IDOGCOMMANDS.CS]… Read More »

Python – Interfaces

By | 19/07/2023

In this post, we will see how to use Interfaces in Python.We remember that an Interface is a powerful concept in object-oriented programming that, allows us to define a common set of methods that implementing classes must provide.It helps establish a contract between classes, ensuring that certain methods are available and must be implemented in… Read More »

C# – Dapper vs EF for CRUD operations

By | 12/07/2023

In many articles and websites, there are many examples of how Dapper is faster than EF to select data in a database.In this post instead, I want to check if Dapper is faster than EF for some CRUD operations like Insert, Update and Delete.I have this curiosity because I have seen that there is an… Read More »

Category: C#

SwiftUI – Table on iOS 16

By | 28/06/2023

In this post, we will see how to use the new Table introduced in iOS 16.It is import to highlight that in macOS and iPadOS it works very well instead, in iOS, it doesn’t work fine. In fact, in iOS, and in situations with a compact horizontal size class, the Table doesn’t show the headers… Read More »

C# – Optimizing performance with Parallel.For

By | 21/06/2023

In this post, we will see how to use Parallel.For to optimize the performance of our applications.But first of all, what is Parallel.For?“The Parallel For loop is part of the System.Threading.Tasks namespace introduced in .NET Framework 4.0. It provides a convenient way to divide a loop iteration into smaller, independent tasks that can be executed… Read More »

Category: C#

Python – File and Directory management

By | 14/06/2023

In this post, we will see some scripts that we can use to management files and directories. CURRENT WORKING DIRECTORY: LIST DIRECTORY CONTENTS: CHECKING FILE EXISTENCE: CREATING AND REMOVING A DIRECTORY: COPYING, MOVING, RENAMING AND DELETING A FILE: