Smashing Magazine - #324: Front-End Decisions

Useful tools to help you make better front-end decisions when coding, debugging and reviewing code. Issue #324 October 26, 2021 View in the browser 💨

Smashing Newsletter

Xin chào Smashing Friends,

Decisions! In our work, we make thousands of decisions every day. Today, building and designing front-end isn’t easy. Not only are there so many things happening all around us, but the cost of wrong decisions is also high, and making good decisions requires expertise and a team’s skillset that usually needs years to build up.

In this newsletter, we are looking into some of the useful resources to help you make better front-end decisions — perhaps by exploring DOM treemap or starting off with front-end boilerplates, or perhaps even using AI as your coding assistant. We hope you’ll find them useful.

SmashingConf SF 2022SmashingConf SF 2022
Let’s jazz together again! Meet SmashingConf SF 2022, taking place on March 28–31 at the waterfront next to the iconic Golden Gate Bridge.

If you’d like to boost your skills, we have good news that we’ve been waiting for months. SmashingConf is back! We are so, so happy to finally invite you to the in-person SmashingConf SF 2022, taking place on March 28–31. Let’s jazz together in San Francisco, in person: jump to all topics and speakers.

One track, two days, with talks and workshops by experts on accessibility, front-end, design systems, performance and interface design. We’ll also be hosting in-person workshops on front-end, design and UX. We have a few happy-birds tickets with a special price, so don’t wait too long.

See you online and in-person!
— Vitaly (@smashingmag)


1. Preventing Excessive DOM Size

If you spend a bit of time studying Lighthouse audits, you probably have stumbled upon Lighthouse complaining about excessive DOM size. The implications can be quite severe: increased memory usage, longer style calculation and costly layout reflows, all resulting in an increase of Total Blocking Time, one of the Web Vitals that Lighthouse is considering in its audits. But once you know that you need to reduce the DOM size, where do you start?

Preventing Excessive DOM Size

Christian Schäfer’s DOM Treemap Chrome Extension (also available for Firefox) helps you explore the distribution of DOM nodes in the document tree. The extension extends the “Elements” tab in DevTools with an additional pane that, as Christian explains, visualizes the distribution of node descendants of the currently inspected DOM element. So you can navigate in the DOM, locating branches that are too large and too heavy. Plus, if you are using BEM, the extension visualizes how intensive BEM components are on average. Handy! (vf)


2. Building Websites In 2021

Is building a website in 2021 easier than it was, let’s say, 5–10 years ago? We don’t have to worry that much about the intricacies of Internet Explorer and inconsistencies of support (or rather lack of support) across browsers. Yet when building a fast, accessible and scalable solution, sometimes we need to make thorough architectural decisions — starting from a choice of tools and libraries all the way to hosting and CDNs.

Building Websites in 2021

In “How I Built A Modern Website in 2021”, Kent C. Dodds goes into all the fine details explaining all the minor and major decisions that were done in the process of redesigning his personal website. That includes a deployment pipeline, database connectivity, local development, image optimization, database interaction and authentication.

One of the useful little details is that when trying to reach out to Kent, you can record an audio message directly in the browser (you need to be signed up though) and have Kent reply to you via audio later. Also, with an option to log in once and then log in on other devices with a QR code. A nice 34-min read that’s worth reading over a cup of coffee! (vf)


From our sponsor

Web Dev: Essential Industry Tips

Velo by Wix
Explore how web developers are making use of the latest tools to succeed in the industry. The Rapid Web Development 2021 Report was created by our friends at Velo by Wix and has all the insights from freelancers and agencies around the world. Discover data, trends and real user stories to help you grow your business. You can read our take on the most interesting findings here.


3. Better Code Reviews

If you are working in a large enough team, chances are high that you’ll have to review your colleague’s code before it goes into production. But how do you make your code reviews more useful and actionable without ruining the team’s spirit, or leaving the colleague in the dark? As much as we need to leave comments with empathy, we should also do the same with code reviews: we need to provide specific, actionable feedback and also mark optional comments as well as offer a rationale for decision-making — but can we do better?

Better Code Reviews

In “How To Make Good Code Reviews Better”, Gergely Orosz highlights some of the important considerations that make good code reviews even better, especially when dealing with cross-time zone reviews, organizational support and reviews for new joiners.

If you need to dive deeper, Google has collected a few best practices around code review and Smartbear even provides an annual State of Code Review Report with trends in team structure, expectations, code review frequency, and so on (please note that email is required). (vf)


4. Upcoming Front-End & UX Workshops

You might have heard it: we run online workshops around front-end and design, be it accessibility, performance, navigation, or landing pages. In fact, we have a couple of workshops coming up soon, and we thought that, you know, you might want to join in as well.

Smashing Online Events
Front-end and design can sometimes feel like you’re riding some pretty wild waves! We’ve got your back with personal and inclusive events.

As always, here’s an overview of our upcoming workshops:


5. Front-End Boilerplates And Starter Kits

When working on any kind of project, we all have to start somewhere at some point. Not every project has to start from scratch, and so having a few reliable boilerplates and starter kits can come in quite handy. Over the last few months, we’ve been collecting some useful tools that might be just what you need when you have a blank page in front of you.

Front-End Boilerplates and Starter Kits

Useful Front-End Boilerplates And Starter Kits shines the spotlight on starter kits for all kinds of projects, from static site templates and React/Vue starter kits to favicon and accessibility templates and even emergency site templates. We are also working on an ever-growing Guide to Accessible Front-End Components and Useful VS Code Extensions. Any recommendations are welcome — please let us know on Twitter (@smashingmag) and we’ll add it right away! (vf)


From our sponsor

The 7 Best Programming Languages To Learn In 2022

Indeed
Which programming language should you learn? An experienced software engineer highlights languages in high demand, which often offer significant salary opportunities and can be leveraged in several types of roles.


6. Tailwind Cheatsheet

If you are using Tailwind CSS in your project, you probably have forgotten the right class names at least once. No wonder, there are plenty of different versions of Tailwind, and there are plenty of classes to work with. If you need a quick Tailwind reference cheat sheet, look no more: Jay Elaraj has it all set up and ready to be used.

Tailwind Cheatsheet

Tailwind CSS Cheat Sheet allows you to look up documentation for all Tailwind classes, all grouped and categorized, with docs and an overview of all class names — going all the way to Tailwind 0.7.4. You can also search for a specific class and preview all available classes with a version label for a specific version of Tailwind. One for the bookmarks! (vf)


7. AI-Powered Code Completion For Mac

Have you ever wished you could code without having to worry about memorizing function calls and other basic syntax? Well, good news, Kite makes it possible. The tool uses the latest developments in machine learning to offload repetitive parts of programming and support you with fast, context-aware completions of your code.

AI-Powered Code Completion For Mac

Available for free for Mac, Kite works with 16 code editors and 16 languages to help you code faster and stay in the flow. In fact, it’s possible to cut keystrokes by as much as 47%. Kite also includes documentation lookup for Python that lets you view Python docs with just one click or mouse-hover. A real timesaver! (cm)


From our sponsor

Build In-Demand Skills In Northwestern’s Online MS In Information Design And Strategy

Work at the Intersection of Data, Design and Technology. Earn your master’s degree online at Northwestern Information Design and Strategy.
Earn your master’s degree online.


8. Recent Smashing Articles


That’s All, Folks!

Thank you so much for reading and for your support in helping us keep the web dev and design community strong with our newsletter. See you next time!


This newsletter issue was written and edited by Cosima Mielke (cm), Vitaly Friedman (vf) and Iris Lješnjanin (il).


Sent to truly smashing readers via Mailchimp.
We sincerely appreciate your kind support. You
rock.

Follow us on Twitter Join us on Facebook

unsubscribe update preferences view in your browser

Key phrases

Older messages

#323: SVG Freebies, Techniques and Tools

Tuesday, October 19, 2021

With grainy SVG gradients, SVG flags, animated credit cards and SVG generators. Issue #323 • October 19, 2021 • View in the browser 💨 Smashing Newsletter Olá Smashing Friends, I vividly remember the

#322: Front-End Guides, UX, Regex and Docker

Tuesday, October 12, 2021

With guides to Docker, API design, high performance browser networking, design management and good ol' frontend. Issue #322 • October 12, 2021 • View in the browser 💨 Smashing Newsletter Ahoy

#321: Little Front-End Helpers and Resources

Tuesday, October 5, 2021

With useful little helpers and resources for front-end developers. Issue #321 • October 5, 2021 • View in the browser 💨 Smashing Newsletter Ahoy Smashing Friends, What are some of the most useful

New Front-End & UX Workshops on Accessibility, Design Systems and UX 🍂🥮

Monday, October 4, 2021

Live workshops on design CSS, accessibility, design patterns, design systems, psychology and Next.js. A bunch of new online workshops on front-end & design. • View in the browser 💨 SmashingConf

#320: New CSS Techniques

Tuesday, September 28, 2021

Richer, life-like CSS shadows to better form outlines, responsive background images, clip-path and multi-line background gradients. Issue #320 • September 28, 2021 • View in the browser 💨 Smashing

You Might Also Like

Car UX, DevTools Tips, CSS Patterns, iOS404, Internet Cables

Thursday, April 18, 2024

The 5 best design links, every day. Curated by a selection of great editors. Email not displaying properly? View browser version. Sidebar April 18 2024 Steering the future: a new vision for car UX

Big Tents, Pistachio Palettes, and Other Late-Breaking Milan Discoveries

Wednesday, April 17, 2024

View in your browser | Update your preferences We've had a remodel! From now on, you'll be hearing from AD PRO in your inbox twice a week—once with a deep dive into trends to watch and subjects

163 / Dieter Rams inspired Framer components, America's national parks and more free resources…

Wednesday, April 17, 2024

Product Disrupt Logo Product Disrupt Half-Monthly Apr 2024 • Part 1 View in browser Welcome to Issue 163! I'm comfortable talking to a human on camera, but talking at the camera, not so much. The

Logo System, BCWA Identity, War Robots, 84—24, 19th-Century Atlas

Wednesday, April 17, 2024

The 5 best design links, every day. Curated by a selection of great editors. Email not displaying properly? View browser version. Sidebar April 17 2024 Logo System: Explore 400+ logo designs logosystem

Emma Roberts's Home: AD100 Firm Pierce & Ward Share Their Secret Sources

Tuesday, April 16, 2024

Plus, the best exterior house colors View in your browser | Update your preferences Architectural Digest AD PRO Logo exterior of two residential buildings painted with blue trim with a brick patio and

#452: Design Workflow

Tuesday, April 16, 2024

How to choose the right idea, navigate difficult conversations and communicate design. Issue #452 • Apr 16, 2024 • View in the browser Smashing Newsletter Iyi akşamlar Smashing Friends, Design workflow

Mario & Pareto, faces.js, Sleep vs Blog, Dark Mode, DOM Folding

Tuesday, April 16, 2024

The 5 best design links, every day. Curated by a selection of great editors. Email not displaying properly? View browser version. Sidebar April 16 2024 Mario meets Pareto mayerowitz.io Discover how to

Gap, Teenagers, Artistic Intelligence, Should Designers Code, CSS in RSCs

Tuesday, April 16, 2024

The 5 best design links, every day. Curated by a selection of great editors. Email not displaying properly? View browser version. Sidebar April 15 2024 Gap is the new Margin frontendmasters.com In 2020

How to Combat Allergies at Home—Designers Weigh In

Monday, April 15, 2024

Plus, 5 gorgeous greenhouses from the AD Archive View in your browser | Update your preferences Architectural Digest AD PRO Logo a conservatory-style greenhouse at the back of a lush floral garden

Accessibility Weekly #392: Socks, Lies, and Accessibility

Monday, April 15, 2024

April 15, 2024 • Issue #392 View this issue online or browse the full issue archive. Featured: Socks, lies, and accessibility "Global Accessibility Awareness Day (GAAD) is around the corner.