Scriptified logo

Scriptified

Subscribe
Archives
April 1, 2024

Issue #19 - Scriptified

Headshot

Read issue on web

Visualize how different array and object transformations work in JavaScript, understand how caching, fetching and revalidations work with the Next.js App Router, check if you understand truthy values in JavaScript and a neat trick to create fixed length arrays with custom items via Array.from

Tip of the day

Array.from() takes a secondary map argument which can get handy when creating new arrays of specific length.

Array.from({length: 3}, (_, i) => ({ id: i + 1 }))

> [{ id: 1 }, { id: 2 }, { id: 3 }]

Articles

3 TypeScript Tricks I wish I knew when I learned TypeScript

Learn some handy tricks with TypeScript that can help you write more maintainable code and save you some time.

by Tim Raderschad

Myths about Web Accessibility

Although web accessibility should be a must in all web applications yet it remains a mystery among many developers. With this article, Alvaro tries to debunk some of the common misconceptions around web accessibility.

by Alvaro Montoro


Tools

dotbot

A tool that helps you organize your dotfiles by helping you keep them under version control system like git. It can provide “one click” idempotent installations for dotfiles that are specified using JSON or YAML files.

by Anish Athalye

What The Filter?

A tool for visualizing JavaScript Array and Object transformations, by generating diagrams containing intermediate values, errors and warnings for each transformation step, that’ll help you find out what the code does (or doesn’t).

by Renato Böhler


Tech Talks

Next.js App Router Caching: Explained!

Learn how you can utilize the different APIs provided by Next.js App Router to fetch cache data, perform mutations, and revalidate cached data with server actions and how you can opt out from the default caching behavior when needed.

by Vercel


Quiz

What's the value of output?

const output = `${[] && 'Im'}possible! You should${'' && `n't`} see a therapist after so much JavaScript lol`;

possible! You should see a therapist after so much JavaScript lol
Impossible! You should see a therapist after so much JavaScript lol
possible! You shouldn't see a therapist after so much JavaScript lol
Impossible! You shouldn't see a therapist after so much JavaScript lol


This week in GIF

When I’m looking for a catchy name for my new variable (via [thecodinglove.com](https://thecodinglove.com/when-im-looking-for-a-catchy-name-for-my-new-variable))

When I’m looking for a catchy name for my new variable (via thecodinglove.com)


Liked this issue? Share on Twitter or read previous issues.

Don't miss what's next. Subscribe to Scriptified:
GitHub X
Powered by Buttondown, the easiest way to start and grow your newsletter.