Python – How to manage a JSON file

By | 26/04/2023

In this post, we will see how to read values, change values, delete keys and add new keys in a JSON file.First of all, we define a JSON file like this: [USER.JSON] Then, we open Visual Studio Code and we create a file called readJson.py that we will use to manage the JSON file: READ… Read More »

SwiftUI – Charts

By | 19/04/2023

In this post, we will see how to use the Charts framework added in SwiftUI 4.But first of all, what is Charts?From Apple developer site:“Swift Charts is a powerful and concise SwiftUI framework for transforming your data into informative visualizations. With Swift Charts, you can build effective and customizable charts with minimal code. This framework… Read More »

Python – Multithreading (introduction)

By | 12/04/2023

In this post, we will see how to use multithreading in Python, following the posts that I created for C#.How we know, multithreading is a programming technique that allows multiple threads of execution to run concurrently within a single process. Each thread can perform a different task or execute a different portion of code, and… Read More »

C# – Stopwatch

By | 05/04/2023

In this post, we will see what StopWatch is and how we can use it.But first of all, what is StopWatch?The Stopwatch class is a high-resolution timer provided by the .NET Framework, designed to measure the elapsed time for an operation or a block of code. It’s part of the System.Diagnostics namespace and offers greater… Read More »

Category: C#

C# – The fastest ways to iterate a List

By | 22/03/2023

In this post, we will see the fastest ways to iterate a List. We start creating a Console Application called ReadList and then, we add a Class called Core: [CORE.CS] Now, we will add four methods to iterate the List using the statements For, Foreach, List<T>.Foreach and Foreach with CollectionsMarshal.AsSpan: FOR(We are not sure that… Read More »

Category: C#

Git – Commands

By | 08/03/2023

In this post, we will see some Git commands that can help us to manage our projects. git init:It is used to start a new repository. git config:It is used to set the name and the email to use with our commits. git add:It is used to add files to the staging area. git commit:It… Read More »

Category: Git

Multithreading – SemaphoreSlim

By | 01/03/2023

In this post, we will see what is SemaphoreSlim and how we can use it.But first of all, what is SemaphoreSlim?From Microsoft web site:“The SemaphoreSlim class represents a lightweight, fast semaphore that can be used for waiting within a single process when wait times are expected to be very short. SemaphoreSlim relies as much as possible… Read More »