In JavaScript applications with Rollbar integrated for reporting, you might see a common recurrence of the following error:
[Read More]JavaScript Disable console.log on Production Environment
Both on Node & Frontend apps.
In JavaScript applications, especially on Frontend apps, we might want to disable our console.log
(or any variant of it, such as warn, info, debug, error, etc.) that we have placed for debugging throughout the application. Below are the two possible ways to do it:
How to Publish and Use a Private Javascript Library Without Npm Registry?
With the Help of Github Repository and Version Tags
Node Package Manager, or NPM, is a defacto registry of JavaScript libraries, where anyone can create and publish a library (called package), both public and private. For publishing private packages, subscription fee is required.
In this post, we will discuss how we can host our public or private JavaScript library at Github, maintain various versions of the library using tags, and, finally, include a specific version of the library in some project and use its code.
[Read More]JavaScript Recursion With Default Function Parameter
With Fibonacci Example
In this post, we will check an example of recursion with default function parameter of es6 JavaScript. Mind you, there is no benefit of doing the recursion this way. On the contrary, it is always better to write a more readable recursion algorithm within the body of the function. This is just for the sake of demonstration!
[Read More]What Is Destructuring And Restructuring Design Pattern In JavaScript?
A More Declarative Approach.
JavaScript: Difference Between Module, Library, Package, API, SDK, Framework and Application
In this post, we will determine what these terms mean and how they relate to each other in the context of JavaScript.
[Read More]React JS Code Review Checklist
A handy guide to review a pull request
This post provides a checklist to review a React JS application code. For many issues, especially related to personal taste like semicolon or arrow vs traditional function, and things like propTypes, we can simply configure linters such as ESlint and Prettier to automatically detect and force us to resolve the warnings. We can furthermore make these linting fixes mandatory on commits (such as with Husky hooks) or PR merges (with CI/CD tools such as Github Actions).
[Read More]Remove Eslint Warnings For Dynamic Imports
import/no-dynamic-require & global-require
JavaScript Process Array Map in Reverse
In this post, we will explore ways to process JavaScript map on an array in reverse.
[Read More]CPU Scheduling Algorithms - JavaScript
Simulation Code for Scheduler and Task
In this post, I am going to share a JavaScript simulation for some well-known CPU/operation system scheduling algorithms. The ES6 JavaScript code can be run in the Node JS environment.
[Read More]