DEV Community

Stefan Judis
Stefan Judis

Posted on • Originally published at stefanjudis.com

🧒 Stefan's Web Weekly #27

Welcome to Web Weekly #27!

Ciao, friends!

I'm back from my vacation! It was full of tours on "shitty bikes" and long walks in Amsterdam. I really like the vibe of the city! It was perfect trip to relax and decompress. And in the meantime I got my first vaccine shot, too! Normality is approaching! πŸŽ‰

Before we jump into web stuff, let me share some wisdom I saw on Twitter.

This week's Web Weekly includes:

  • an extensive guide to accessible components
  • new CSS viewport units
  • maybe unnecessary browser functionalities

... and, as always, GitHub repositories, a new Tiny Helper and some music.

Ready? Steady. Go!

Feedback for better native elements

Visualisation of a viewport boundary showing a custom select box

Wouldn't it be great if we could style select elements? Astonishingly, there's still no easy way to do that without reimplementing an entire component. But there's movement, and Melanie Richards asks for feedback on ongoing proposals such as the popup element and anchored positioning in CSS.

πŸ‘‰ Give feedback

All the things browsers can do today

The web browser I'm dreaming of – Mon 17 May 2021

The initial purpose of the web was to access and view documents. That's a long time ago. Julien Voisin wrote a somewhat snarky piece on essential browser features and potentially unnecessary browser functionality. While I don't think everything is as useless as Julien describes, the blog post provides a valuable overview of what's possible with the web today.

πŸ‘‰ Learn about browser features

Scan your lego pieces and get instructions on new things to build

Screenshot of the Brickit app showing scanned lego pieces that result in building instructions

Brickit is an iPhone app that scans all your LEGO pieces and generates instructions to build new things with all your pieces. I'm not a LEGO person, but if that works as promised, that'd be really cool.

πŸ‘‰ See Brickit in action

Another Mac setup guide

My 2021 Mac Setup

Swyx shared and updated his Mac setup guide. I love reading these lists to learn more about what other people use. Unfortunately, Swyx' setup is not automated (there are few things more satisfying than setting up a new computer by running a script), but there are many good things in the guide!

πŸ‘‰ Find new tools

(If you wonder how to automate VS Code extension handling, I have a post about that on my blog, too)

A global $ command to run copied commands

Terminal command: $ echo

While going over Swyx' setup, I discovered that he's using the undollar npm CLI package. The package's purpose is "to eat" leading dollar signs so that you can run copied commands easier.

Using a third-party package or even Node.js is too much used technology for such a simple feature. I shared how you can implement a $ command with two lines of shell scripting.

πŸ‘‰ Add a dollar command

How process leads to improvement

A better way to solve problems and make consistent progress is to build a workable or healthy system for the many areas of your life.

My habit game is not very strong these days, but I'm still convinced that healthy habits and structure lead to a better life. Thomas Oppong shared how processes lead to progress.

πŸ‘‰ Establish life processes

Will we get new viewport units?

Comparison of two different viewport units. 100vh showing the complete height of an iphone display whereas 100svh subtracts the control bar

I haven't heard of small, large and dynamic viewports before, but apparently, there's a new proposal aiming to clean up the messy viewport unit handling on its way. Bramus had a look and explained what units such as svh and dvh can do.

πŸ‘‰ Learn about dynamic viewport units

Thoughts on averages

80% of participants thing they're smarter than average.

I played around with thanaverage.xyz a reasonable amount of time. It's a fun little site with lots of moving "wibbly wobbly blobs".

It asks you simple YES/NO questions. The catch: it shows you the average of other peoples' answers. It's fascinating that 78% of the people think that they have fewer friends than the average.

πŸ‘‰ Check if you're average

Is npm audit broken?

The way npm audit works is broken. Its rollout as a default after every npm install was rushed, inconsiderate, and inadequate for the front-end tooling.

You might have noticed that whenever you run npm install today, npm greets you with a scary "You're project is vulnerable!" message. I just ran it for my website, and that's the prompt I see.

found 9 vulnerabilities (1 low, 1 moderate, 7 high)
Enter fullscreen mode Exit fullscreen mode

Seven high vulnerabilities? Holy moly – I should drop everything I'm doing and fix these right away! But wait, it's a static site built on my local machine or Netlify's servers. Is it really that urgent? Should I care about these at all?

Dan Abramov shared his opinion on npm audit, and I agree, the way npm audit works today is indeed broken.

πŸ‘‰ Reconsinder npm audit

πŸ”– An extensive list of accessible components

In a new short series of posts, we highlight some of the useful tools and techniques for developers and designers. Recently we’ve covered CSS Auditing Tools and CSS Generators, and this time we look into reliable accessible components: from tabs and tables to toggles and tooltips.

One for the bookmarks; if you're looking for patterns to build accessible frontend components, Vitaly Friedman from Smashing Magazine published a massive article collecting hundreds of resources (I didn't count πŸ™ˆ)!

πŸ‘‰ Build an accessible web

Open source shout out πŸ’™

Web vitals react hook. Bring web vitals quickly into your react project

If you visited my blog, you might have seen that I show the site's web vitals in the footer. Nils SchΓΆnwald took my web-vitals custom element and ported it to React. Great work!

πŸ‘‰ Show Web Vitals in your React project

Three valuable projects to have a look at

A new Tiny Helper

SVG Favicon Generator Favicon for the modern web 🀟  Why you should use a SVG favicon generator instead of the SVG icon you already have: Embed two versions of your icon, for light and dark themes; See how your icon looks like, in browser tabs and Google result pages; Add contrast in seconds

You probably know about the RealFaviconGenerator. This week I discovered that the site also includes a tool to generate SVG Favicons. 😲

πŸ‘‰ Generate SVG Favicons

Find more single-purpose online tools on tiny-helpers.dev

A quote to think about

Chris Coyier is turning 41 soon and he published a list of lessons learned in 40 years. The post includes this week's quote.

Every decision we make, big and small, short-term and long-term, is an effort to improve our mood.

A song Sets that makes you stop coding

Chris Luno dj'ing in front of a background that looks like Mars

I discovered Chris Luno recently. Almost every week, he publishes a house DJ set standing in front of a beautiful location. I really like his style!

πŸ‘‰ Listen to "Deep house from Mars"

Thank you for reading!

And that's a wrap for the twenty-seventh Web Weekly! If you enjoy my newsletter, I'd love you to tell others about it. β™₯️

If you're not a subscriber, you can change that! πŸ˜‰


Stay safe, and I'll talk to you next week! πŸŽ‰ πŸ‘‹

PS. I heard the cool kids use RSS. You can find multiple feeds on my site.

Top comments (0)