C# – “ValueOf” library

By | 15/06/2022

In this post, we will see the library ValueOf that we could use for validating our classes.But first of all, what is the purpose of ValueOf?From the GitHub page:“The Smell: Primitive Obsession is using primitive data types to represent domain ideas. For example, we use a String to represent a message, an Integer to represent… Read More »

Category: C#

Docker – Commands

By | 08/06/2022

In this post, we will see some Docker commands that they can help us in our Docker projects. DOWNLOAD A DOCKER IMAGE docker pull ‘name of image’ LIST DOCKER IMAGES REMOVE DOCKER IMAGE docker rmi ‘image id’ REMOVE ALL DOCKER IMAGES RUN DOCKER CONTAINER docker run ‘name of image’ START AND STOP A DOCKER CONTAINER… Read More »

Multithreading – Lock and Mutex

By | 01/06/2022

In this post, we will see how to use Lock and Mutex for obtaining a lock in a thread. We start creating a Console application where, we will add a class called Methods: [METHODS.CS] Then, we modify the Program file in order to run RunMethods():[PROGRAM.CS] Now, if we run the application, this will be the… Read More »

Node.js – CRUD operations with MongoDB

By | 25/05/2022

In this post, we will see how to create a Web API with Node.js to run all CRUD operations for an entity called Person, using MongoDB as database. We start creating a Node project called MongoCRUD using the command NPM INIT; it will create a package.json file like this: [PACKAGE.JSON] Then, we add a docker-compose… Read More »

Linux – Commands (Part I)

By | 11/05/2022

MANAGE DIRECTORIES pwd: print name of current/working directory ls: list directory contents mkdir ‘directory name’: make directories mkdir -p ‘directories names’: make parent directories as needed rmdir: remove empty directory rmdir -p ‘name of directories’: remove directory and its ancestors rm -rf: remove a directory not empty MANAGE FILES file: determine file type touch ‘file… Read More »

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 »