JavaScript

23rd June 2023

Hyperledger Composer Architecture

Hyperledger Composer is an open framework device to make blockchain programs efficient to a large extent. It linked the blockchain application with the records of business systems. It allows the developers to create full-stack blockchain application solutions. It uses the Hyperledger Fabric architecture to enable the protocols and policies and to have verified transactions. The current business network can be easily monitored by Hyperledger Composer which can include the assets, services, property, etc. Key Concepts in Hyperledger Composer Below are some of the concepts in Hyperledger Composer: Architecture of Hyperledger Composer Below are some of the components of Hyperledger Composer: 1. Yeoman code generator: 2. […]
4th May 2023

Cookies vs. Local Storage vs. Session Storage: What’s the difference?

Cookies, Local Storage, and Session Storage are the storage methods in javascript. We’ll take a look at some examples and explore their differences. Cookies, Local Storage, and Session Storage Cookies are small pieces of data stored on the client-side computer, usually in plain text. A cookie is typically sent to the server with each request so that the server can identify the user and provide personalized content. Cookies are typically used for authentication and storing user preferences. Local storage is similar to cookies, but it stores data in a structured way, usually as key-value pairs. The data is stored on the client-side […]
14th April 2023

Configure ESLint, Prettier, and Flow in VS Code for React Development

This short guide will provide you a consistent and reusable development workflow for all React Native projects. The more effort you put into writing quality code, the less time you spend on debugging. You can increase your code quality and reduce the time spent on debugging with a consistent development workflow. In this guide I will show you how to configure your editor to handle your code formatting, linting, and type checking. Test Driven Development and a preconfigured build configuration are recommended. I won’t go into much detail on either of these. I recommend create-react-app for the web and using the React Native […]
10th October 2022

Quick Tip : How to Use the Spread Operator in JavaScript

Symbolized by three dots (...), the JavaScript spread operator was introduced in ES6. It can be used to expand elements in collections and arrays into single, individual elements The spread operator can be used to create and clone arrays and objects, pass arrays as function parameters, remove duplicates from arrays, and more Syntax The spread operator can only be used on iterable objects. It must be used right before the iterable object, without any separation. For example: Function Parameters Take as an example the Math.min() method. This method accepts at least one number as a parameter and returns the smallest […]
17th May 2022

Useful TypeScript and JavaScript shorthands to know

JavaScript and TypeScript share a number of useful shorthand alternatives for common code concepts. Shorthand code alternatives can help reduce lines of code, which is something we typically strive for. In this article, we will review common TypeScript and JavaScript shorthands. We will also explore examples of how to use these shorthands. JavaScript and TypeScript shorthands Using shorthand code is not always the right decision when writing clean and scalable code. Concise code can sometimes be more confusing to read and update. It is important that your code is legible and conveys meaning and context to other developers. Our decision to […]