javascript

3 Quick Tips to Convert Types In JavaScript

March 14, 2021 · 1 min read
JavaScript has 6 primitive data types. They are string, number, boolean, null, undefined, and symbol. Here are 3 quick tips for converting data to one specific primitive.

Errors When Using The `{}` Empty Object TypeScript Type

January 29, 2021 · 1 min read
Have you ever used the `{}` type definition in TypeScript? It represents the type "empty object", which is an object with zero own properties. There are few scenarios where returning an empty object is better than returning nothing...

How to Create A Snowfall Animation with Svelte [2 Ways]

January 6, 2021 · 6 min read
When I started the quest to create a snowfall animation with Svelte, I knew nothing about complex transitions or animations. My first step was to go through the motion, transition, and animation tutorials by Svelte. Then I decided on my first approach: custom transitions.

How Storybook Improves the Way Frontend Teams Work

September 25, 2020 · 2 min read
We started with Storybook one month ago, and I love it. Now, whenever I'm developing components for our React application, I first integrate them into storybook instead of the app itself. Before I explain why, let's first look at what Storybook is.

Create An Article Series Overview Page With Gridsome

September 4, 2020 · 2 min read
You're writing an article series. And you want a place for your readers to see all posts at once. Using the tags system would work, but is not the right fit for this. Here's a simple way to create and automatically update an article series overview page.

Clean Install In CI: How To Freeze Your Lockfile With npm And yarn

August 4, 2020 · 1 min read
Why it is important to fix the dependency version in your CI pipeline. And how to do it.