Recently Published

Chrome devtools: Using logpoints for logging messages directly

When it comes to debugging JavaScript in Chrome devtools, there are two different camps: the console.log fans and the debugger/breakpoint maximalist. I...

How to prevent npm install for unsupported Node.js versions

npm configurations allow us to do quite a lot of nifty things. One of them is to allow the project to set...

How to terminate a process on a port using the command line

Zombie processes are usually a pain to figure out. More often than not, I end up googling about how to terminate a...

Editor's Pick

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...

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...

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

How to cancel an HTTP fetch request

JavaScript promises have been a huge catalyst for asynchronous coding in the language. They have vastly improved the performance and experience for...

Measuring JavaScript execution time

When it comes to performance of applications, measuring performance becomes important. For anything to be optimized, it must be measured first, optimized,...

Web NFC is a thing now

NFC or Near Field Communication is a short-range wireless technology that allows devices at a distance of less than 10cm to communicate....

How to easily build good habits: 4 tips backed by research

The best way to move forward towards achieving our dreams is to commit to them. And habits are the compound interest of...

5 tips to help you stay fit in a corporate lifestyle

Do you feel that every day of your corporate life turns out to be a misery? At the end of the day, when you get...

How to develop your curiosity for a better self?

Curiosity is the reason why most of the breakthrough discoveries and remarkable inventions have happened throughout history. In the absence of curiosity,...

Latest Articles

Detecting dark mode preference using JavaScript

As dark themes have become popular across the web and across operating systems, we might want to check the user's operating system...

JavaScript: Split string and keep the separators

String.prototype.split() is a valuable method to split strings based on a delimiter. There often comes a scenario when we want to split...

Printing JavaScript stack traces using console.trace

The console object in JavaScript has a lot more useful functions than the most frequently used console.log method. Debugging errors and finding...

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()...

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.

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...

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.