Skip to content
Joe Attardi

Articles

Freelance writing on frontend development. Each article links to the original publication.

Smashing Magazine

Latest article

Moving From Moment.js To The JS Temporal API

The way JavaScript handles time has evolved significantly, from the built-in Date API to Moment.js and now Temporal. The new standard fills gaps in the original Date API while addressing limitations found in Moment and other libraries.

  • JavaScript

More articles

LogRocket ·

Working with URLs in JavaScript(opens original on LogRocket)

URLs are a critical piece of any web app. If your app makes requests to an API, it’s important to craft the correct URLs for these requests. The URL API, supported in all modern browsers, provides a way to parse and manipulate URLs. It provides easy access to the various parts of the URL.

  • JavaScript

LogRocket ·

Patterns for efficient DOM manipulation with vanilla JavaScript(opens original on LogRocket)

These days, frameworks are all the rage. But sometimes we still turn to DOM manipulation with vanilla JavaScript. The typical pattern for DOM manipulation using vanilla JavaScript is something like this: first, you need to get a reference to the DOM element you want to work with. This is often done with functions like getElementById or querySelector.

  • JavaScript

freeCodeCamp ·

How to Center Text Vertically with CSS(opens original on freeCodeCamp)

If you have some text inside a div, and nothing else, the div's height will match the text height. Suppose, though, you have some text and an image. Your text will be aligned at the bottom of the div, which is usually not what you want. In this article, you'll learn a couple of ways to vertically center your text inside a div or other element.

  • CSS

freeCodeCamp ·

How to Build Your First Web Component(opens original on freeCodeCamp)

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. In this article, you'll learn the basics of web components and create a very simple web component that shows the current date.

  • Web Components
  • JavaScript

LogRocket ·

Understanding TypeScript's benefits and pitfalls(opens original on LogRocket)

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. Type checking is the primary advantage of TypeScript. By adding static typing to the language, we can catch many of these problems at build time. They can be fixed before the code is shipped.

  • TypeScript

LogRocket ·

12 essential ESLint rules for React(opens original on LogRocket)

ESLint has a comprehensive set of rules for JavaScript code that cover stylistic choices and prevent common bugs. Using ESLint alone will give your project a boost, but there are ESLint plugins available to add React-specific rules that will help you write solid React applications.

  • JavaScript
  • React