Articles
A collection of articles I've written for various publications across the web.
How JavaScript Promises Work - Handbook for Beginners
Many operations, such as network requests, are asynchronous in nature. One of the most useful and powerful tools for working with asynchronous code is the Promise. In this handbook, you'll learn all about JavaScript Promises and how to use them.
How and when to use JavaScript arrow functions
Arrow functions have a simpler syntax than standard functions, and there are some important differences in how they behave.
Working with URLs in JavaScript
Break down the parts of a URL and explore APIs for working with them in JavaScript, parsing them, building query strings, checking their validity, etc.
Patterns for efficient DOM manipulation with vanilla JavaScript
Explore DOM manipulation patterns in JavaScript, such as choosing the right querySelector, caching elements, improving event handling, and more.
Using the ScrollTimeline API for scroll-linked animations
CSS scrollTimeline introduces a new way to add scroll-linked animations to your webpage. Use and compare it to the Web Animations API here.
How to Center Text Vertically with CSS
In this article, you'll learn a couple of ways to vertically center your text inside a div or other element.
How to Build Your First Web Component
In 2023, browser support for web components (also known as custom elements) is really good. There's never been a better time to start building your own custom elements.
Top 5 Web APIs for performance-based analysis (and how to use them)
Learn about five web performance APIs, which have full browser support and offer many ways for you to measure your apps' performance.
Understanding TypeScript's benefits and pitfalls
If you haven't taken up TypeScript yet, now's the time! Start here by learning how TypeScript can benefit your project, and what to be wary of.
12 essential ESLint rules for React
There are many ESLint rules for React out there — learn which ones are most useful in this post, which covers the twelve most essential ones.
When and how to choose HTML for form validation
Client-side form validation such as HTML5 gives users near-immediate feedback about whether or not their input data is valid.