Node.js – Async/Await

By | 04/05/2022

In this post, we will see how to use Async/Await in Node.js for working in asynchronous mode in the easiest way.It has been introduced from ES2017 to solve the complexities we can find using Promises. For example, if we want to create a method to calculate the square of a number, using Promises, this is… Read More »

Angular – CRUD operations

By | 27/04/2022

In this post, we will see how to create a project in Angular to manage CRUD (Create, Read, Update and Delete) operations for an entity called User; we will use Json Server for the definition of a Web API service. WEB APIWe create a file called UsersDB where we will define a list of User entities: [USERS.DB]… Read More »

Docker – Swarm commands

By | 20/04/2022

In this post, we will see some Swarm commands that could help us in our docker projects.But first of all, what is Docker Swarm?Docker Swarm is an orchestration management tool that runs on Docker applications and it helps us in creating and deploying a cluster of Docker nodes.Swarm is directly integrated into the Docker CLI… Read More »

C# – Redis Cache

By | 06/04/2022

In this post, we will see how to manage Redis Cache in a Web API .NET Core project.But first of all, what is Redis Cache?From Redis web site:“Redis is an open source (BSD licensed), in-memory data structure store, used as a database, cache, and message broker. Redis provides data structures such as strings, hashes, lists, sets, sorted sets with range queries, bitmaps, hyperloglogs, geospatial indexes,… Read More »

Category: C#

Swift – Class (Part II)

By | 30/03/2022

Swift – Class (Part I) MULTIPLE INITIALIZERS If we run this code, these will be the results: DEINITIALIZERDeinitialization is a process used to deallocate the memory space before a class instance deallocated. The ‘deinit’ keyword is used to deallocate the memory spaces occupied by the system resources. If we run this code, these will be… Read More »

Swift – Struct

By | 09/03/2022

In this post, we will see how to use Struct in Swift.But first of all, what is a Struct?:From Apple web site: “Use structures to represent common kinds of data. Structures in Swift include many features that are limited to classes in other languages: They can include stored properties, computed properties, and methods. Moreover, Swift… Read More »

Swift – Throwing functions

By | 02/03/2022

In this post, we will see how to use Throwing functions to handle errors in our code. We start opening Xcode and we create a Playground file called Errors where, we will define a simple method “Divide” to divide two number greater than 1: If we run the code, this will be the result: The… Read More »