Zachary Lee

Zachary Lee @zacharylee

About: Newsletter: https://webdeveloper.beehiiv.com

Joined:
Apr 28, 2024

Zachary Lee
articles - 37 total

Ditch Git Checkout: Use Git Switch and Git Restore Instead

If you use Git in your daily work, git checkout is a common command. It's often used to switch...

Learn More 1 0Oct 14 '24

The Secrets of JavaScript Object Property Order

Someone asked me recently, are JavaScript object properties necessarily unordered and...

Learn More 1 0Oct 14 '24

Understanding the infer Keyword in TypeScript

TypeScript, a statically-typed superset of JavaScript, has gained massive popularity in the tech...

Learn More 6 0Sep 27 '24

How Server-Sent Events (SSE) Work

SSE (Server Sent Events) is not widely used in the world of web development, this article will take a...

Learn More 15 0Sep 27 '24

Ditch dotenv: Node.js Now Natively Supports .env File Loading

One of the staples of environment management in Node.js has been the use of the dotenv package, which...

Learn More 1 0Sep 22 '24

How to Create a Type to Retrieve All Keys of an Object in TypeScript

Typescript has a feature called keyof that can be used to obtain the keys of an object. However, the...

Learn More 12 1Sep 16 '24

7 Lesser-Known HTML Attributes to Enhance User Experience

HTML is a powerful language for creating web pages, and while most developers are familiar with...

Learn More 1 0Sep 11 '24

Difference Between new Function() and new function() in JavaScript

JavaScript is indeed flexible, but it also brings some confusion. For example, you can use multiple...

Learn More 9 0Sep 10 '24

The Secrets of the 'delete' Operator in JavaScript

The delete operator is arguably an old language feature of JavaScript. As it literally means, it...

Learn More 5 0Sep 7 '24

Creating a React Hook for Rotating Images at Any Angle

In web development, you may need to rotate an image, which is easy to do in CSS. Simple code like...

Learn More 3 0Sep 5 '24

Under the Hood of React Router in 40 Lines of Code

If you’ve built React apps, you’ve definitely used React Router. It’s a feature-rich routing library,...

Learn More 2 0Sep 1 '24

4 Quick Commands to Find Things in Linux

1. The which command The which command and the whereis command below both search for...

Learn More 2 0Aug 26 '24

How to Build a React Hook That Handles Sequential Requests

When you need to respond quickly to user actions and fetch the latest data from the backend, you...

Learn More 3 0Aug 21 '24

The Differences Between "export default xx" and "export {xx as default}"

The Basics of JavaScript Modules Modules are self-contained pieces of code that can be...

Learn More 2 0Aug 3 '24

Why to Avoid Default Exports in JavaScript Modules

Latest updates in my newsletter. JavaScript modules are a way to organize code into reusable...

Learn More 9 1Aug 2 '24

How to Create DOM Elements from HTML Strings (Multiple Methods)

When we need to create simple dynamic HTML DOM elements, we can use HTML string templates. There are...

Learn More 4 2Aug 1 '24

The Differences Between 'Object', '{}', and 'object' in TypeScript

Latest updates in my newsletter. In TypeScript, when we want to define an object type, there are...

Learn More 249 13Jul 24 '24

7 New JavaScript Set Methods

TL;DR: JavaScript’s Set data structure has added 7 new APIs that are very useful and can reduce the...

Learn More 3 0Jul 13 '24

How to Annul Promises in JavaScript

In JavaScript, you might already know how to cancel a request: you can use xhr.abort() for XHR and...

Learn More 15 6Jul 1 '24

I Open-Sourced KeyEcho: Fast-Responsive Mechanical Keyboard Sounds with Every Keystroke

TL;DR: I've recently open-sourced KeyEcho, an application that listens to your keyboard typing and...

Learn More 2 0Jun 10 '24

7 Differences Between Arrow Functions and Traditional Functions

The arrow function that appeared in ES6 has brought us great convenience, but it is still different...

Learn More 1 0Jun 3 '24

How to Commit Multiline Messages in git commit

As developers, when using Git to commit code to a remote repository, we need to write information...

Learn More 8 3Jun 2 '24

React 19 Beta Release: A Quick Guide

React 19 Beta has been announced, it introduces several new concepts that simplify state management,...

Learn More 6 0Jun 1 '24

Type Systems in Programming Languages

This article will introduce those parts that cannot be ignored in various programming languages — the...

Learn More 3 0May 31 '24

How to Control the Number of Concurrent Promises in JavaScript

In some cases, we may need to control the number of concurrent requests. For example, when we are...

Learn More 2 0May 30 '24

How to Get a Perfect Deep Equal in JavaScript

In JavaScript, we can use == , === operator and Object.is method to judge the equality of two...

Learn More 1 0May 27 '24

How to Get a Perfect Deep Copy in JavaScript?

Originally published in my newsletter. Pre-knowledge In JavaScript, data types can be...

Learn More 20 1May 24 '24

Native Support for CJS/ESM Interoperability Begins in Node.js 22

The adoption of ECMAScript Modules (ESM) for development has become mainstream, yet Node.js continues...

Learn More 0 0May 23 '24

HTML Script Element Attributes: async vs. defer vs. type='module'

I believe you are no stranger to script elements in HTML. It has some properties such as async,...

Learn More 9 1May 23 '24

How does HTTPS work

Originally published in my newsletter. Hypertext Transfer Protocol (HTTP) is an application-layer...

Learn More 16 1May 22 '24