Friday Frontend: Independence Weekend Edition

Hey there,

Most years on a July 4th weekend I’d be spending a ton of time hanging out with friends, eating and drinking and being merry. This year, with COVID-19 on the upswing again, I’ll be celebrating just with my family. I hope you too are staying safe and healthy. We will get through this, but only if we don’t throw caution to the wind just because we’re feeling isolated.

There’s some truly great articles this week that you should definitely take the time to read. I absolutely LOVED the article on global and component style settings, the article on reactivity in Solid blew my mind, and ‘Accessible to some’ is a brilliant way of demonstrating the impact of accessibility work. Enjoy!

Best,

KBall from ZenDev

 

CSS & SCSS

 

Global and Component Style Settings with CSS Variables

Absolutely brilliant article diving into how you can use CSS Variables to build a simple, logical, easily themeable component library usable in any project with any design system. I don’t work on ZURB Foundation any more, but if I did this is absolutely the approach I’d be pushing.

When Sass and New CSS Features Collide

As powerful as CSS is becoming, there’s still a ton of things you can do in Sass that aren’t available in CSS. Mixins and the resulting modularity/reusability is top of mind for me. But what do you do when there’s a syntax collision between new CSS and Sass? The author walks through how that can happen, where it happens, and then highlights a clever workaround. 

Styling Layout Wrappers In CSS

Back to basics article but one that is super in-depth and well done. Wrappers are one of the fundamental building blocks you learn as your styling skills grow -- there are so many layout tasks that are hard or impossible without them but trivial with them. This article breaks down what they are, how they work, and a number of usecases.

New in Chrome: CSS Overview

Woah, this looks cool! A new developer tool being tested in Chrome that gives you a quick overview of everything going on in a page. I particularly like the way it will just show you all of the colors in use -- this can help you quickly diagnose if you’re following a design system or slap dash all over the place.


JavaScript

 

SolidJS: Reactivity to Rendering

The concept of reactivity seems to have been gradually taking over front-end web development for a while, but I love that I’m seeing more and more people talking about it explicitly rather than just as one tiny piece of a large framework. This article is super in depth, but if you’re interested in getting a deeper grasp on how reactivity works and how you can build more complex functionality very naturally on top of it, it’s worth the time.

Exploring React Renders: Different Ways a Component Gets Re-Rendered.

One extremely common source of performance issues in React is having an expensive component that is re-rendered a lot. And frequently that rerendering is happening by accident, due to not understanding exactly what triggers the rendering cycle. I’ve definitely been bitten by this. This article dives into the different situations that cause a re-render; having those in your head will help you reason about this. I wish it also went into techniques for preventing those rerenders, but it looks like the author is planning a second post on that subject.

How I work with arrays

Nice, easy to read article on useful techniques for working with arrays. While I shy away from the words “best practices”, many of these I think would fit in that category - they will keep you out of trouble if you follow them.

Understanding Template Literals in JavaScript

A dive into how strings work in JavaScript, comparing template literals to traditional single and double quote strings. If you’re already using template literals day in and day out, you probably don’t need this article. But if you’re not… woah, definitely take a moment to read through this. IMO, template literals are strictly superior to other strings approaches in JS. I use them for everything but the very simplest of strings. And especially with tagged template literals… those have become the underpinnings of tons of great libraries like styled components, graphql-tag, and more.

 

Other Awesomeness

 

Accessible to some

Brilliant illustration of the way ignoring accessibility impacts people. The author created a thought experiment -- what if we treated mouse & “traditional” browser users the same way we treat screen reader users? They implemented this experiment (definitely follow their link and check it out) and then proceed to talk about the shortcomings the way websites often talk about accessibility shortcomings. Very well done.

Information And Information Architecture: The BIG Picture

A misconception I had when I first started moving into the front-end was that design was all about “making things pretty”. This mistake made me both devalue design, and underestimate my ability to think about and reason about design. The lightbulb moment for me was when a designer friend sat me down and talked me through the concept of information architecture. THIS made sense to my engineering mind, and suddenly many of the things I’d brushed off as minor started to seem important as I saw how they impacted the user’s perception of information. If you don’t have a designer to sit you down and talk through this, try this article instead.

Testing your animations for “prefers-reduced-motion” support

Short and to the point. Highlights why we should care about the prefers-reduced-motion media query, how to use it, and how to simulate it with devtools for test.

Selection controls — UI component series

More on the design side, this is a look at the state of the art in terms of components for making selections. Not content to stick with checkboxes and radio buttons? Learn about toggle switches, choice chips, and more. Includes a nice breakdown of situations when it makes sense to use each.

The physics behind spring animations

Great look behind the scenes at what goes into a good spring animation. Useful both in terms of understanding the underpinnings, but also in just getting a grasp of the levers you can pull on to tweak your own animations.

Copyright © 2020 ZenDev, LLC, All rights reserved.
You are receiving this email because you opted in at our website, zendev.com.

Our mailing address is:
ZenDev, LLC
922 San Leandro Ave., Unit C
Mountain View, California 94043

Add us to your address book


Want to change how you receive these emails?
You can or .

Email Marketing Powered by Mailchimp

Older messages

Friday Frontend: New CSS Techniques Edition

Friday, June 26, 2020

I hope you had a great week, and you're staying safe as we endure what looks like a strong rise in COVID-19 cases across the US and Latin America. View this email in your browser Hey there, I hope

Friday Frontend: Juneteenth Edition

Friday, June 19, 2020

Happy day of celebrating the end of slavery in the US. Crazy how recent it was, and how much this history continues to haunt us today. View this email in your browser Hey there, Happy day of

Friday Frontend: Reactivity in 2020 Edition

Friday, June 12, 2020

Hope you had a good week and are looking at a great weekend. I'm surely looking forward to a rest after working a lot of late nights on a deadline. View this email in your browser Hey there, Hope

Friday Frontend: Black Lives Matter Edition

Friday, June 5, 2020

This week has been surreal. We've seen protests in cities across every one of the 50 states in the US, and supporting protests across the country. View this email in your browser Hey there, This

[LINK CORRECTION] Friday Frontend: “Modern” JS & Web Dueling Takes Edition

Friday, May 29, 2020

Happy Friday! There's some super cool articles this week that I'd love to draw your attention to. View this email in your browser [The first version of this newsletter contained an incorrect

You Might Also Like

Re: Hackers may have stolen everyone's SSN!

Saturday, November 23, 2024

I wanted to make sure you saw Incogni's Black Friday deal, which is exclusively available for iPhone Life readers. Use coupon code IPHONELIFE to save 58%. Here's why we recommend Incogni for

North Korean Hackers Steal $10M with AI-Driven Scams and Malware on LinkedIn

Saturday, November 23, 2024

THN Daily Updates Newsletter cover Generative AI For Dummies ($18.00 Value) FREE for a Limited Time Generate a personal assistant with generative AI Download Now Sponsored LATEST NEWS Nov 23, 2024

📧 Building Async APIs in ASP.NET Core - The Right Way

Saturday, November 23, 2024

​ Building Async APIs in ASP .NET Core - The Right Way Read on: m​y website / Read time: 5 minutes The .NET Weekly is brought to you by: Even the smartest AI in the world won't save you from a

WebAIM November 2024 Newsletter

Friday, November 22, 2024

WebAIM November 2024 Newsletter Read this newsletter online at https://webaim.org/newsletter/2024/november Features Using Severity Ratings to Prioritize Web Accessibility Remediation When it comes to

➡️ Why Your Phone Doesn't Want You to Sideload Apps — Setting the Default Gateway in Linux

Friday, November 22, 2024

Also: Hey Apple, It's Time to Upgrade the Macs Storage, and More! How-To Geek Logo November 22, 2024 Did You Know Fantasy author JRR Tolkien is credited with inventing the main concept of orcs and

JSK Daily for Nov 22, 2024

Friday, November 22, 2024

JSK Daily for Nov 22, 2024 View this email in your browser A community curated daily e-mail of JavaScript news React E-Commerce App for Digital Products: Part 4 (Creating the Home Page) This component

Spyglass Dispatch: The Fate of Chrome • Amazon Tops Up Anthropic • Pros Quit Xitter • Brave Powers AI Search • Apple's Lazy AI River • RIP Enrique Allen

Friday, November 22, 2024

The Fate of Chrome • Amazon Tops Up Anthropic • Pros Quit Xitter • Brave Powers AI Search • Apple's Lazy AI River • RIP Enrique Allen The Spyglass Dispatch is a free newsletter sent out daily on

Charted | How the Global Distribution of Wealth Has Changed (2000-2023) 💰

Friday, November 22, 2024

This graphic illustrates the shifts in global wealth distribution between 2000 and 2023. View Online | Subscribe | Download Our App Presented by: MSCI >> Get the Free Investor Guide Now FEATURED

Daily Coding Problem: Problem #1616 [Easy]

Friday, November 22, 2024

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Alibaba. Given an even number (greater than 2), return two prime numbers whose sum will

The problem to solve

Friday, November 22, 2024

​ Use problem framing to define the problem to solve This week, Tom Parson and Krishna Raha share tools and frameworks to identify and address challenges effectively, while Voltage Control highlights