How to fix “xcrun: error: invalid active developer path” after MacOS update

2 years ago

If you are here, then you are getting an "invalid active developer path" error on running commands in the terminal…

Getting the value of an input element as a number without parseInt

2 years ago

Every once in a while, you come across something and you think, how did I not know this earlier? valueAsNumber is…

Using Font Awesome with React

2 years ago

Font Awesome is a great resource to use various types of icons in your project including well-known social media icons…

How to write comments in React (JSX)?

2 years ago

I was recently trying to comment out some logic inside my JSX to add context about what a potentially complex…

How to write more readable JavaScript conditionals

2 years ago

One of the practices of clean code is to make it more readable. And a fairly common use case in…

How to debug better using $ sign shortcuts in Chrome devtools

2 years ago

Chrome devtools has a collection of utilities that can be used to perform common debugging tasks and make our life…

Deep copying in JavaScript using structuredClone

2 years ago

For as long as anyone can remember, deep copying in JavaScript was not a built-in feature and we had to…

Chrome devtools: Using logpoints for logging messages directly

3 years ago

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

How to prevent npm install for unsupported Node.js versions

3 years ago

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

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

3 years ago

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

Advertisements