The newly introduced ‘replaceAll()’ method removes the need for using a regex!

ES2021. Image Credits: moroioh.com
ES2021. Image Credits: moroioh.com
Image Credits: moroioh.com

If you have ever worked with strings in JavaScript, you know what a pain it is to replace all the matching substrings in a string!

Okay, maybe I’m being a little dramatic here, but it sure as hell wasn’t something you could do easily as a novice.

For example, when I first started working with JavaScript (I was fairly new to programming back then) and wanted to replace all the occurrences of a word in a string, I just couldn’t figure out how to do it by reading thereplace() method’s documentation.

I wondered why I needed to use something so complicated as a regex to do something so simple as replacing all occurrences of a word in a string (I wasn’t a big fan of regex back then, and to be frank, I still am not). …


GitHub CLI 1.0 was released on Sept 17, 2020

Image for post
Image for post
Photo by hannah joshua on Unsplash

GitHub, the popular Git Provider has created a command-line tool that allows its users to access GitHub without leaving their terminals!

In this post, I’ll walk you guys through the process of setting up the GitHub CLI on your local machine.

So, let’s start!

Step 1 — Install the GitHub CLI

Before you can start using the GitHub CLI, you must install it on your local machine.

Installing on Mac

If you’re using macOS, you can install it using Homebrew, like so:

brew install gh

Here’s a gif to give you a better idea:


Code-named “One Piece,” Vue 3.0 is the latest version of one of the most popular front-end frameworks.

Vue.js 3.0. Image Credits: JavaScript Weekly
Vue.js 3.0. Image Credits: JavaScript Weekly
Vue.js 3.0. Image Credits: JavaScript Weekly

Sept 18th, 2020, came bearing the good news of the release of Vue 3.0.

The Vue.js team announced its release via its official Twitter account:

A tweet from Vue.js’s official Twitter account

I was excited to try it out and decided to create a small Todo app.

In this article, I’ll walk you guys through the process of creating a web app using Vue 3.0.

But before we start, let me give you a glimpse of what we are about to create:


Deno 1.0 was released on May 13, 2020

Photo by Frank P. via Pixabay — A picture of the long-necked Brachiosaurus
Photo by Frank P. via Pixabay — A picture of the long-necked Brachiosaurus
Photo by Frank P. via Pixabay

Deno is Ryan Dahl’s (yeah, you guessed it right, the guy who created Node.js) latest venture.

But it isn’t just another JavaScript Engine. It also supports TypeScript — JavaScript’s strictly typed cousin — out of the box.

Installing Deno

On macOS, you can install Deno using Homebrew — the open-source software package manager for macOS:

brew install deno

Here’s a GIF to give you a better idea:


A little empathy and understanding in such situations goes a long way

An angry boss scolding his team.
An angry boss scolding his team.
Image Credit: iStockPhotos (Image for representation purpose only)

“Why didn’t you update the time sheet?” asked the Tech Lead in an angry voice.

“I worked until late at night yesterday. I forgot. I’ll do it immediately.” said the developer, who was questioned by the lead in a meek voice.

“I think my instructions were quite clear. Update the tasks that you have completed throughout the day in the time sheet at EOD without a miss. It seems you don’t follow my orders!” said the lead in an angry tone.

“And what were you doing?” the lead barked at one of the senior developers who was in charge of mentoring the junior developer. …


Let’s meet the new kid on the programming block

Image for post
Image for post
Photo by Octavian Dan on Unsplash

V is a brand new programming language that’s been making quite a few waves in the programming community.

I stumbled upon it a few months back when I read this article.

While V is still in its infancy as of this writing (there are only six questions about it on SO), it is gaining popularity (it has around 15.9K stars on GitHub).

And it’s also under active development (as evidenced by the recent commits in its GitHub repo).

So, I thought, why not give it a try. After all, what’s the harm in being an early adopter, right?

So, let’s get started! …

About

Pratik Chaudhari

Software Engineer | Tech Aficionado | Voracious Reader | Persuasive Writer | And a slightly opinionated human being :)

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store