Asynchronous Javascript

In computation systems, names like concurrent, sequential, parallel, serial, synchronous, asynchronous, non-blocking, shared state, message passing, and likes, stand as a forbearer for the actual task that happens in a system. While all of the above techniques have their use cases, in the world of JavaScript, asynchronous and synchronous programming never leave the tongues of its programmers. In his Concurrency glossary, slikts (dabas@untu.ms) wrote about asynchronous, he said: Asynchrony means “not happening at the same time”, and asynchronous message passing is a communication model that does not require the sending and receiving to be synchronized, meaning that the sender isn’t blocked until the receiver is ready. ...

March 3, 2020 · 13 min · Aleem Isiaka

Menu system in Node Apps like WordPress Menu

You might have been in this kind of trap before or currently in one, well, I just want to tell you that I know your pain. In a custom built CMS, managing of Menu and navigation in the site from the Admin Dashboard is a requirement. While it is interesting to use, it is not as interesting to build. I just walked past this process, here, I am sharing how I have conquered it. ...

January 25, 2020 · 15 min · Aleem Isiaka

ReactJS - Unexpected closing tag

Beginners in ReactJS often face this kind of error: It is not just with inputs, it is with all HTML elements that does not expect a closing tags, they are called empty elements. A list of these tags could be found here. To solve this very easily, we just have to follow the HTML semantics by ending all empty elements with /> instead of > So inputs should look like this: ...

January 25, 2020 · 1 min · Aleem Isiaka

ReactJS - Inplace Edit component

Last time, I was trying to render a data table and I thought that I should make some fields editable right in the table listing. It is interesting to note that I never thought about any NPM library for it, so I went all out to create a simple but effective solution for myself. In this post, I will demonstrate how I created an editable component. The component would be able to use different form fields and notify the parent if any change has been made. That said, Let’s move…. ...

January 20, 2020 · 8 min · Aleem Isiaka

AdonisJS - Event

Modern application development requires that some actions are carried out when a point of the application is reached. Tasks like confirmation email, invoice generation, logging and profiling are few of things that requires to be carried out in specific regions of application flow. These actions that are triggered are called Events. Events in modern application development make code execution after a web request to the server has been completed to be possible. ...

January 19, 2020 · 2 min · Aleem Isiaka

AdonisJS - Route Model Binding

AdonisJS was built for the NodeJS Artisans taking after the concepts of Laravel - The PHP framework for Artisans. AdonisJS did a great job porting these concepts into JavaScript, it maintains the namespace even though JavaScript does not support that, it using its own fast, easy and extendable view engine and many more, but some features of Laravel are not shipped with AdonisJS by default. The IoC container in Laravel auto injects classes by inspection when a recognized namespace is Type Hinted. This makes route model binding easier with Laravel. In JavaScript, there is little that can be done to achieve this, so, there is a need for a custom approach to this. ...

January 12, 2020 · 5 min · Aleem Isiaka

AdonisJS - Using Validators with resource routes

First, install the Validator using the adonis command: 1 adonis install @adonisjs/validtor Create a resource route 1 adonis make:controller PostController --resource Define the route in start/route.js 1 2 3 //.. Route.resource("posts", "PostController") //.. Now, we can make a Validator for /posts/store a d o n i s m a k e : v a l i d a t o r S t o r e P o s t This will create a validator in /app/Validators. ...

January 10, 2020 · 1 min · Aleem Isiaka

Migrating from WordPress to Gatsby - The Journey

Yes, this topic is worth a post and I will walk you through why the migration was inevitable, and how I had done it. Formerly, this website used to run on WordPress, the great PHP CMS. The design was made with the aid of Typography theme, I loved it! All of the post prior to this date was written using the WordPress admin dashboard. I loved the Gutenberg Editor, it was so fluid and easy to work with. Overall my experience was great. ...

December 15, 2019 · 8 min · Aleem Isiaka

Programmer's Sexiness Quest

Let’s be guided, we are not getting naughty here. Nevertheless, a programmer is a human, he has his feelings and emotions which is interesting. The direction he puts these uniquely human traits makes him more interesting - towards the code and software, of course. I’ve been through a variety of programming languages, which always turned to be that the deeper I dive into a language, the more “aha” moment I get. I always feel like I have gotten what I wanted and have to look no further to attract the priceless attention of my fellows. ...

October 15, 2019 · 4 min · Aleem Isiaka

Complete NodeJS App Setup on an AWS Lightsail VPS

In this post, we will explore how to set up a NodeJS app on Amazon’s Lightsail instance. We will also explore setting up a CircleCI job for a NodeJS project, use Nginx as a web server, setup SSL for the server, and allow a local machine to access the remote server. Prerequisites AWS Lightsail instance AWS Route53 domain (not mandatory) CircleCI account Github repo for the NodeJS project. Let’s begin! ...

August 6, 2019 · 13 min · Aleem Isiaka