Weekly Digest 07/2021
Welcome to my Weekly Digest #7 of this year.
This weekly digest contains a lot of interesting and inspiring articles, videos, tweets, and designs I consumed during this week.
Interesting articles to read
Introducing the Storybook Axios addon
Storybook is a fantastic tool to share the current state of your UI with your team.
When it comes to network requests things get a little tricky. React’s Higher Order Components (and similar techniques) help you move network requests out of your components into their own layer.
Storybook Axios addon helps you to see what data is sent to the backend and returned; either from the API or the mock. That way you can debug your connected components as you build in Storybook.
Zsh Tricks to Blow your Mind
In UNIX-based programming, we often talk about shells, terminals, and the command line interfaces. Bash is probably the most well-known, but there are other widely-used options as well, such as Zsh or the Z shell. Read on to learn more about Zsh and some tips and tricks to optimize your development.
SmolCSS
Minimal snippets for modern CSS layouts and components, created by Stephanie Eckles of ModernCSS.dev
Use CSS Variables instead of React Context
How and why you should use CSS variables (custom properties) for theming instead of React context by Kent C. Dodds.
Listify a JavaScript Array
When you want to display a list of items to a user, I’m afraid .join(', ')
just won't cut it. Intl.ListFormat
can do all you need and more.
TypeScript without TypeScript — JSDoc superpowers
One way to think about TypeScript is as a thin layer around JavaScript that adds type annotations. Type annotations that make sure you don’t make any mistakes. The TypeScript team worked hard on making sure that type checking also works with regular JavaScript files. TypeScript’s compiler ( tsc
) as well as language support in editors like VSCode give you a great developer experience without any compilation step.
Some great videos I watched this week
Dgraph Graph Database in 100 Seconds
Learn the fundamentals of Dgraph — an open-source Graph Database that implements GraphQL as its query language.
Additive Waves — The Nature of Code
This video builds on the previous sine wave visualization in p5.js example. Here, I build a Wave class with variables for period, amplitude, and phase, and demonstrate how to add multiple wave patterns together!
? in NaN Seconds
Learn how the question mark “?” in JavaScript provides syntactic sugar in three powerful ways.
Useful GitHub repositories
Domain-Driven Hexagon
Guide on Domain-Driven Design, Hexagonal architecture, techniques, tools, best practices, architectural patterns, and guidelines gathered from different sources.
Bundle Buddy
A tool to understand your bundle size and why files are in your bundle.
dribbble shots
Juice Brand Website Menu
Sayuran — Grocery UI KIT
Task Management Dashboard
Tweets
Talk to you next week and stay safe! 👋