DEV Community

loading...

Weekly Digest 04/2021

Marco Biedermann
Full-Stack JavaScript Engineer passionate about TypeScript, Node.js, React and Open Source working @mobimeo based in Berlin.
Updated on ・4 min read

Welcome to this weekly digest, which is the last one for January ❄️.

This weekly digest contains a lot of interesting and inspiring articles, videos, tweets, and designs I consumed during this week.


Interesting articles to read

Making Remote Work Work: Useful Tools And Resources

How to stay creative, focused, and organized when working remotely? We’ve collected some useful tools and resources that we use daily at Smashing. We aren’t affiliated in any way with any of the toolmakers featured here. We simply love what they do.

Making Remote Work Work: Useful Tools And Resources - Smashing Magazine

The CodePen Spark

Stacks, Skateboards, and Synths

The CodePen Spark

How Algolia created its Netlify build plugin

We recently released the Algolia Netlify plugin. You can read more about the plugin, watch an intro, or get started with right away. Algolia is a flexible search and navigation platform, which enables cutting-edge, web, app and e-commerce experiences.

How Algolia created its Netlify build plugin | Algolia Blog

Where should you store tokens?

Confused on how to store a token on client side?🤷 LocalStorage? Cookie?

Where should you store tokens?

Creating a Simple Yet Complicated Dark Mode Animation

A dark mode toggle animation should have some personality. Here's my take on a unique dark mode transition animation.

CK - Creating a Simple Yet Complicated Dark Mode Animation

Using fetch with TypeScript

How to make HTTP requests with fetch and TypeScript

Don't use functions as callbacks unless they're designed for it

Don't use functions as callbacks unless they're designed for it

New aspect-ratio CSS property supported in Chromium, Safari Technology Preview, and Firefox Nightly

Maintaining a consistent width-to-height ratio, called an aspect ratio, is critical in responsive web design and for preventing cumulative layout shift. Now, there's a more straightforward way to do this with the new aspect-ratio property launching in Chromium 88, Firefox 87, and Safari Technology Preview 118.

New aspect-ratio CSS property supported in Chromium, Safari Technology Preview, and Firefox Nightly

Addon ecosystem 2.0

New addon catalog, tutorials, and docs.

Addon ecosystem 2.0


Some great videos I watched this week

Despite having launched a video showing how to mock both Fetch and Axios recently... here is another solution, the one recommended by Kent C. Dodds (creator of React Testing Library), showing how to use Mock Service Worker to avoid making actual HTTP requests when you are running your tests.

by Leigh Halliday

GitHub Discussions, Dark Mode, PR Auto Merge, Codespaces, and more #DemoDays

Join Bryan Cross for a tour of the exciting additions and changes to the GitHub User Experience we introduced at GitHub Universe. All to make your experience as a developer just a bit smoother.

by GitHub

VS Code Productivity Tips and Tricks

Tips and tricks on how to be productive with Visual Studio Code.

by Sana Ajani

Fun with advanced TypeScript


Useful GitHub repositories

Spotter

https://raw.githubusercontent.com/spotter-application/spotter/master/preview/icon.png

macOS productivity tool to launch everything (e.g. switch the next song, connect bluetooth device, set a timer, etc.) so you can stay focused on your current task.

GitHub logo ziulev / spotter

🔎 macOS productivity tool to launch everything

Spotter Thanks

Spotter - Productivity tool that allows you to launch everything | Product Hunt

Productivity tool to launch everything (e.g. switch the next song, connect bluetooth device, set a timer, etc.) so you can stay focused on your current task.

  • ❤️   Open source
  • 🤖   Native
  • 🔌   Plugins
  • ⌨️   Custom hotkeys
  • ⬆️   Sort options by frequency of use
  • 📦   Small size

Installation

brew install --cask spotter

Installation instructions and alternatives are available on https://spotter-application.github.io/getspotterapp

Hotkeys

Default hotkey to run the app double shift

Plugins

Applications

  • <app_name>

Bluetooth

  • bluetooth
  • <device_name>

System commands

  • sleep
  • shutdown
  • restart
  • logout

Timer

  • 15m

Emoji

  • e rocket

Kill applications

  • kill
  • k <app_name>

Applications dimensions

  • save application positions
  • restore application positions

Spotify / Apple Music

  • play
  • pause
  • next
  • previous
  • mute
  • unmute
  • share

Calculator

  • 256/8

Browser

  • github.com

Pass

  • p email/gmail

The main idea

  • 🔮   Provide an api on the native level
  • ⚛️   React app uses it and implements various plugins

It will allow the application to remain native and be available for developing…

Mock Service Worker

Mock Service Worker (MSW) is an API mocking library for browser and Node.

https://raw.githubusercontent.com/mswjs/msw/master/logo.png

GitHub logo mswjs / msw

Seamless REST/GraphQL API mocking library for browser and Node.js.

Mock Service Worker logo

Package version Build status Downloads per month Libraries.io dependency status for latest release Discord server

Mock Service Worker (MSW) is an API mocking library for browser and Node.

Features

  • Seamless. Dedicated layer of requests interception at your disposal. Keep your application's code and tests unaware whether something is mocked or not.
  • Deviation-free. Request the same production resources and test the actual behavior of your app. Augment an existing API, or design it as you go, when there is none.
  • Familiar & Powerful. Use Express-like routing syntax to capture outgoing requests. Use parameters, wildcards and regular expressions to match requests, and respond with necessary status codes, headers, cookies, delays, or completely custom resolvers.

"I found MSW and was thrilled that not only could I still see the mocked responses in my DevTools, but that the mocks didn't have to be written in a Service Worker and could instead live alongside the rest of my app. This made it silly easy to

Deskreen

Deskreen turns any device with a web browser to a second screen for your computer

https://raw.githubusercontent.com/pavlobu/deskreen/master/resources/icon.png

https://github.com/pavlobu/deskreen


dribbble shots

Newsly - News Reader Concept

https://cdn.dribbble.com/users/78806/screenshots/15014264/media/276d8ce8e15a346c17ddd5fe6eadfdf8.png

by Dmitriy Kharaberyush

Notes App concept

https://cdn.dribbble.com/users/953678/screenshots/14967815/media/2b78a0f3f76304b6df31385d9b79b6d1.png

by Anton Mikhaltsov

Podcast Dashboard Component design | Part 2

https://cdn.dribbble.com/users/4335179/screenshots/15001896/media/bdd211ce7b43a6765e8820205d0eddda.png

by Amirbaqian


Tweets


Picked Pens

Genuary 25 - Make a Grid of Permutations

by Johan Karlsson

ScrollTrigger - Highlight Text

by Ryan Mulligan

Book Store UI

by Aysenur Turk


Talk to you next week and stay safe! 👋

Discussion (0)