React – Fetch data using Axios

By | 04/11/2020

In this post, we will see how to fetch data in React using a library called Axios, modifying the application created in the post: React – Fetch data in Class component.Axios is a promise based HTTP client for the browser and Node.js and, it makes easy to send asynchronous HTTP requests to REST endpoints and… Read More »

Design Patterns – Singleton

By | 21/10/2020

From Wikipedia:“In software engineering, the singleton pattern is a software design pattern that restricts the instantiation of a class to one ‘single’ instance. This is useful when exactly one object is needed to coordinate actions across the system. The term comes from the mathematical concept of a singleton.“ In this post, we will see how to implement this pattern in a .NET Console application. We… Read More »

Node.js – How to create a REST API

By | 14/10/2020

In this post, we will see how to create a Rest API with Node.js and Express. First of all, what is Express?Express is an open source web framework that helps us to make developing websites, web apps, & API’s much easier.It supports many templating engines and it is very simple to use. In order to… Read More »

Swagger – Tips

By | 08/10/2020

In this post, we will see some tips that can help us when we use Swagger.First of all, we open Visual Studio, we create a Web API project and add some files: [BOOK.CS] [BOOKCONTROLLER.CS] If we run the application, this will be the result: Now, we install the Swashbuckle.AspNetCore package, using the command Install-Package Swashbuckle.AspNetCore -Version 5.5.1 in… Read More »

Swift – The word clock

By | 06/10/2020

Finally, I have deployed my app called ”The word clock”.It is a nice word clock for iPhone, where minutes and hours aren’t static but they change their position.This is the first version and it shows only the time.In the next version, I will add other features like alarm and widget. If you want to download… Read More »

React – Fetch data in Class component

By | 30/09/2020

In this post, we will see how to fetch data in a Class component.In the React web site, they advise to use the method componentDidMount() because, “is invoked immediately after a component is mounted (inserted into the tree). Initialization that requires DOM nodes should go here. If you need to load data from a remote… Read More »

SwiftUI – clipShape()

By | 23/09/2020

In this post, we will see how to use clipShape() in order to clip an image controlling its shape.But what is clipShape()?From Apple developer web site:“Sets a clipping shape for a view.Use clipShape(_:style:) to clip the view to the provided shape. By applying a clipping shape to a view, you preserve the parts of the… Read More »

React – Hooks

By | 16/09/2020

In this post, we will see how to use Hooks in React.But, what are Hooks?From React web site:“Hooks are a new addition in React 16.8. They let you use state and other React features without writing a class.“ STATE HOOKS We open Visual Studio Code and we create a file called State.js: [STATE.JS] Now, if we… Read More »