Paul Shan' Post

Diving deep into JavaScript array – evolution & performance

Before starting the article I would like to state that this is not about the basic of JavaScript array. Neither about teaching syntaxes or showing usage examples. The article is more about memory representation, optimization, behavior differences over syntaxes, performance and the recent evolution. When I started using JavaScript for the

Read More

Create ssl / https server in nodejs

Sometimes there are needs to create https in your node application itself to create real life scenario or may be to test things like http/2 server push. Today I will show you how to create https server in node js, both with and without express. I will also talk about

Read More

HTTP2 server push in depth with node.js

HTTP/2 or HTTP/2.0, the upgraded version of the HTTP network protocol is derived from an experimental protocol, named SPDY, developed by Google. It’s the first revision of HTTP protocol since HTTP1.1 and contains many useful features in it. The most interesting and promising feature of HTTP/2 is server push. This

Read More

EcmaScript.in – get notified on any ESNext spec change

One of the most rapidly evolving programming languages in today’s era is JavaScript. The prototype of JavaScript, which is EcmaScript is the main reason behind the JS’s fast pace. TC39, the committee which maintains EcmaScript decided to provide a specification release each year and JavaScript follows it with implementation. But

Read More

import vs require – ESM & commonJs module differences

ECMAScript Modules (ESM) are still in stage 3 (not finalized). require import Dynamic evaluation Static evaluation Throws error at runtime Throws error while parsing Non lexical Lexical As Node.js uses commonJS moduling, I will refer to the workflow of node to address the commonJS modules. And will refer the ECMAScript modules as ESM. Syntax difference CommonJS dep.js app.js ESM dep.js app.js Loading technique difference What Node.js does with

Read More