Adam Coster

Adam Coster @adamcoster

About: Multidisciplinary hacker, doctor of biology, developer of full stack webs, maker of games. (he/him)

Location:
Saint Louis, MO, USA
Joined:
Oct 10, 2019

Adam Coster
articles - 29 total

Custom JavaScript/Typescript Errors: Why and how to use them

Custom error classes are great: You can add your own fields, like error codes and such You can...

Learn More 0 0Dec 20 '23

HTTP Guide

HTTP (Hyper Text Transfer Protocol) is the main way you get information from other people's computers...

Learn More 1 0Jul 3 '23

JSON Guide

JSON (JavaScript Object Notation) is a super popular way of representing complex data for several...

Learn More 1 0Jul 3 '23

The "Can We Not" Principle

One of the most important pillars I use to guide my decisions is the "Can we not?" principle. It's a...

Learn More 0 0Jul 3 '23

Configure pnpm for the best possible developer experience

I've spent a lot of time with the big-three Node.js package managers (npm, pnpm, and yarn), and I've...

Learn More 6 0May 29 '23

JavaScript wants your functions to have names

JavaScript function names can be quite helpful for debugging and logging, but how does JavaScript...

Learn More 3 0May 29 '23

CommonJS and ESM import/export compatibility, by example

Node's CommonJS vs. ECMAScript ("ESM") divide is probably the source of most of my quality of life...

Learn More 11 3Mar 10 '22

✂ Save time and make fewer mistakes with Snippets

Last week I was sitting down to write a custom JavaScript error and became immediately annoyed. I've...

Learn More 10 0Jun 1 '21

🚀 Super-charge your email with your own domain, routing, aliases, and catch-alls via Google Workspace

There's a good chance you're still using an email address you set up in college, or even in high...

Learn More 15 0May 16 '21

Live Dev: How to set up a Node project with Typescript

Learning how to code is a long process. Structured coursework and tutorials are a great way for most...

Learn More 6 0May 14 '21

How Notion's URLs change without breaking your links

I noticed something a while ago while updating the title of a page on one of my favorite webapps...

Learn More 6 1May 5 '21

😴 Laziness isn't real

For most of my life, I was held up as a model of Puritanical work ethic through all jillion years of...

Learn More 56 6Apr 26 '21

Multi-display workstations: boost productivity without breaking your neck

I got in on that standing desk phenomenon a couple of weeks ago (quite late to the party), and used...

Learn More 2 0Apr 19 '21

💻 Documentation as code

Programmers hate writing documentation. Most programmers, anyway. That's just stuff that gets in the...

Learn More 296 26Apr 8 '21

Resolving E404 on global install of a private npm package (Linux)

I was logged into npm (via npm login) and went to do a global install of one of my private packages...

Learn More 5 0Mar 28 '21

How email previews work

Depending on your email client, when looking at your inbox you probably see three main things for...

Learn More 8 0Mar 23 '21

Beware silently skipped tests in Mocha

I'm a big believer in test-driven development, though I admit I'm a recent convert. My framework of...

Learn More 8 2Mar 3 '21

DevChat #2: Piracy, corporations, and pretty JavaScript strings

We've made it to number two! This is an archive of a DevChat newsletter, a weekly dive int...

Learn More 0 0Feb 16 '21

Prettify your JavaScript strings

A new-ish feature of JavaScript is the Template Literal. It's basically a fancy string that lets you...

Learn More 7 1Feb 1 '21

Learn how binary encoding works (it's more fun and useful than you think)

Data requires context to create meaning. Let's say I sent you a text message containing just <3....

Learn More 2 0Dec 28 '20

Setting up Windows 10 for web development, including Docker, Linux, and Node.js

I recently had a catastrophic crash of my desktop, so it was time for a fresh Windows 10 install....

Learn More 66 0Dec 24 '20

Make coding a joy with these core VSCode extensions and settings

Visual Studio Code (VSCode) has rapidly become the favored editor/IDE for a huge swath of web...

Learn More 33 0Dec 24 '20

How to run Linux on Windows 10 using WSL2

Matching your development and production environments can save a lot of headache. In webdev our...

Learn More 11 0Dec 24 '20

Tech Debt: The Bill Comes Due

If we don't solve the problems of our past, the futures that we want become ever more difficult to ob...

Learn More 8 0Nov 6 '20

Typescript Starter Kit: get up and running quickly!

As much as I love Typescript, I often find myself just using plain JavaScript for small projects beca...

Learn More 5 0Oct 9 '20

How to stringify class instances in Javascript and Express.js

When trying to take an object-oriented approach in Javscript, you'll run into the following problem:...

Learn More 10 0Sep 2 '20

The Typescript "as const" trick

Some time ago when I was first learning Typescript, I came across a snippet in a tutorial somewhere...

Learn More 41 5Aug 24 '20

Create a live-reload server for front-end development

I spent my first few years of web development alt-tabbing over to my browser to manually refresh the...

Learn More 20 1Aug 23 '20

"Sign in with Apple" implementation hurdles

Note: This post is fairly technical and written for web developers. It assumes a basic understanding...

Learn More 16 2Oct 10 '19