Matthew Swensen Principal software engineer and open source enthusiast.

Stories by Matthew Swensen

Extending Object-Like Types With Interfaces In TypeScript

Extending object-like types with interfaces in TypeScript

Dev

Interfaces are one of TypeScript’s core features. Let’s explore interfaces’ characteristics and how to better leverage them in programs.

Matthew Swensen
Sep 19, 2023 ⋅ 10 min read
NPM Over Green Background

Using npm query for better dependency management

Dev

Let’s discuss why it’s important to inspect dependencies, review npm query examples, and explore ways to format and manipulate its output.

Matthew Swensen
Dec 1, 2022 ⋅ 4 min read
Mastering TypeScript mapped types

Mastering TypeScript mapped types

Dev

In this post, we’ll cover mapped types in TypeScript, a real-world example of them, and utility types including Partial, Readonly, and Pick.

Matthew Swensen
Oct 25, 2022 ⋅ 8 min read
CSS Logo Over Cloudy Sky

Cascade layers, subgrid, and container queries: What’s new in CSS

Dev

Let’s take a cursory look at CSS’s newest features being shipped in the near future: cascade layers, subgrids, and container queries.

Matthew Swensen
Apr 6, 2022 ⋅ 4 min read
using tsm shebang interpreter feature image

Using tsm as a shebang interpreter in TypeScript

Dev

Learn about tsm, a new TypeScript module loader for Node.js that provides native TS support without needing to transpile it to JavaScript first.

Matthew Swensen
Nov 30, 2021 ⋅ 3 min read
JavaScript Logo

Using SVG vs. Canvas: A short guide

Dev

Canvas and SVG allow web developers to draw images onto the screen, but they have very different APIs and approaches to doing so.

Matthew Swensen
May 10, 2021 ⋅ 5 min read
TypeScript Logo

What’s new in TypeScript 4.2

Dev

Version 4.2 of TypeScript was released in February 2021, with new features, bug fixes, and performance improvements. Find out more here.

Matthew Swensen
Apr 20, 2021 ⋅ 2 min read
A Person With Sunglasses Looking at Lights

The case for using frameworks

Dev

Frameworks play a critical role in the frontend ecosystem, and leveraging modern frameworks can yield dividends over the life of a project.

Matthew Swensen
Apr 7, 2021 ⋅ 4 min read
polymorphic javascript functions affect performance

How polymorphic JavaScript functions affect performance

Dev

Polymorphic APIs can be convenient to use due to their flexibility, but in some situations, they can be more expensive to execute.

Matthew Swensen
Feb 17, 2021 ⋅ 5 min read
React and Angular Logos

Creating compound components in React and Angular

Dev

What is a compound component pattern in React and Angular, and when should you use one? Read on to learn more.

Matthew Swensen
Feb 10, 2021 ⋅ 6 min read
Internet Explorer 11 Logo Over Graffiti Background

Should you drop support for Internet Explorer 11?

Dev

Should your app or service continue to invest time in Internet Explorer 11 support? The answer is: it depends. Find out more here.

Matthew Swensen
Jan 18, 2021 ⋅ 4 min read