Recently Published

Overriding nested dependencies in NPM

Whenever we install a particular package, it is common to come across a problem with a dependency's dependency. With the release of...

Automatic batching in React 18 helps avoid re-rendering

Remember the earlier versions of React that used to batch multiple state updates inside event handlers such as click or change to...

Flatten Arrays in Vanilla JavaScript with flat() and flatMap()

ES2019 introduced two methods on the array prototype that would make life so much simpler for developers. These are flat() and flatmap()...

Editor's Pick

How to remove yourself from someone’s twitter list

Lists are often ignored by most people on Twitter. Twitter lists can be a great way to organize your contacts. More often than not,...

Using Prettier to format your JavaScript code

If you have been programming for a while, you would be familiar with the hassles of writing clean code and maintaining consistency across a...

Moving to BCC: an email etiquette you must know

We use email every day and most of the times the BCC is a crafty little feature that we rarely use. Usually, it is...

Using Retrofit 2 and GSON for parsing JSON in Android

We have previously written about parsing JSON in Android without using any libraries in this post. In this one, we will use a library...

How to setup GatsbyJS starter with TypeScript and ESLint

Gatsby has become fairly popular in the last couple of years and it has starting becoming the go to static site generator...

Featured Articles

The new Logical Assignment Operators in JavaScript

The latest version of ECMAScript introduced three new logical assignment operators: nullish, AND, and OR operators. These are supported from Firefox 79...

Installing Intel-based packages using Homebrew on the M1 Mac

I recently got the new Apple Silicon Mac (aka the M1 mac), and that means having to deal with the pain points...

How to setup Typescript with Babel and Webpack

After seeing a lot of projects making the move to Typescript, I recently started to give it a shot as well. For...

Overcoming Procrastination and The Akrasia Effect

We all know what we should be doing right now. But we don't want to! That is procrastination in a nutshell.

Skipping small talk to connect with people

We are living in a width world and not a depth world, mostly having shallow conversations with everyone around us. Most of the non-family relationships...

The Beginner Syndrome

Someone recently reached out to me and asked how am I able to write consistently. Her exact words were: "how do you...

Latest Articles

Using GroupBy on an array of objects in JavaScript

Array grouping is a fairly common operation in any project. Until recently, we had to resort to either writing our own implementation...

Node.js introduces node: protocol imports

Node.js recently introduced a node: protocol for built-in modules. Built-in node modules can now be imported by prefixing the node: protocol prefix.

4 Tips To Maximize Your Productivity At Work

If you find yourself procrastinating because of the slightest distraction or don’t have an organized system to manage your productivity, this article...

JSON Modules in JavaScript

ES Modules were introduced in ES2015. The import and export keywords by default are only applicable to JavaScript code. But there is...

How to check if a string contains emojis in JavaScript?

If you have user-generated content in your web application, chances are you have to deal with strings containing emojis. Since emojis are...

Writing conditionals in CSS: when/else

CSS already has had conditionals in the form of @media queries or @support queries to selectively apply styling to the document. But...

Retrieving content value of ::after or ::before in JavaScript

For the following element:#element::after { content: 'Custom value' }If we needed a way of...

How to permanently remove a file from Git history

We all make mistakes sometimes. Pushing files that contain some secrets or sensitive information to a Git repository is fairly common. And...

Select all text on click using CSS

When a user has to select some text on a website, they have to drag and hold their mouse, or use double-click...

What Is the Importance of Survey Coding

Have you ever encounter a random email or a colleague who sent a questionnaire regarding a certain topic or research? Do you...

Detecting element causing CSS overflow

CSS overflows are an annoyance that keep showing up once in a while and are really hard to debug. Unwanted and unexpected...

Opening a Browser with DevTools Open by Default

While automating some parts of my development workflow, I was wondering if there was a way of opening a browser with DevTools...

Hi there! Want some more knowledge?

Think that the knowledge shared is helpful? You might want to give our mailing list a try. We'll send you 2-4 emails a month, right when new posts come out.