Friday Issue Nr.114

2024-06-07

back

This week is more about JavaScript, memory leaks, promises, a Big(O) notation and data fetching patterns. CSS has interesting reads about tooltips, aria-label, The Gap and CSS-only timer. Happy Friday, Happy Reading!

JavaScript News

Sneaky React memory leaks

Hopefully, the new compiler will be able to deal with those memory leaks. However, till that moment, this is a good read on closures and how memory leaks happen.

https://schiener.io/2024-03-03/react-closures

When React becomes Svelte

As a joke, I said that a few times, but somebody made a post about the same. 🙂

https://dev.to/artiumws/react-compiler-when-react-becomes-svelte-5969

Promises from the ground up

Even if you know all about Promises, Josh's blog post is always a pleasure to read. It provides perfect-to-detail examples, not only of JavaScript Promises but also of JavaScript single threads and how they work.

https://www.joshwcomeau.com/javascript/promises/

React 19 and impossible components.

https://www.mux.com/blog/react-19-server-components-and-actions

The find() method and a Big(O) notation (kind of)

The article claims that the find() method is not that great, but it all depends on the amount of data. There is no point in winning a few ms and losing the readability of the code. However, it is good to refresh memory on the Map() method and how looping through data can impact code efficiency.

https://medium.com/codex/stop-using-find-method-in-javascript-dfdb40b10821

Data Fetching Patterns in SPA

https://martinfowler.com/articles/data-fetch-spa.html

HTML & CSS News

How deep is your DOM

Interesting experiment between flat vs nested DOM and performance of it.

https://frontendatscale.com/blog/how-deep-is-your-dom/

Tooltips in the time of WCAG 2.1

The list of tooltip names from the article: "tooltip," "infotip," "toggle tip," "hint text," "balloon help," "info bubble," "inaccessible overlay of shame"... the list goes on.”

My personal favourite is “inaccessible overlay of shame”.

https://sarahmhigley.com/writing/tooltips-in-wcag-21/

aria-label usage

Extensive list on aria usage.

https://html5accessibility.com/stuff/2024/05/22/not-so-short-note-on-aria-label-usage-big-table-edition/

Sign up forms

https://piccalil.li/blog/lets-make-a-floating-button-sign-up-form-pattern/

The Gap

As usual, Ahmad Shadeed explained in detail why the flexbox gap property resolves many issues when trying to adjust elements with the usual margin/padding technique. It is interesting to go through all those cases that create problems once you remove an element or add it, but with the gap property, it is just one line, and everything works out of the box.

https://ishadeed.com/article/the-gap/

CSS only timer

Another craziness with CSS and the use of custom property.

https://frontendmasters.com/blog/how-to-make-a-css-timer/

Mixed News

Landing page

I like this website's design. It has many details (hovers, scroll effects), a fancy colour schema and works well in all sizes.

https://www.mux.com/

Comment on Mastodon

Andris Švarcs

Somehow, I've survived over 15 years as a web developer without losing my interest in the craft. Quite the opposite, with so many great improvements in the Web standards, what was nearly impossible now is easy to make.

My career has been a wild ride through small agencies and big corporations, building everything from finance apps to health dashboards.

I'm that annoying person who needs to understand products beyond just slinging code. I ask questions like 'Why is this feature important?' and 'How will this improve the customer journey?' – you know, the kind of questions that make project managers reach for the pint aspirin. This curiosity has led me down the rabbit holes of design, accessibility, and SEO. Because apparently, making websites pretty, usable, and findable wasn't challenging enough on its own.

P.S. If this bio sounds too polished, blame my evil AI twin. I'm still working on teaching it sarcasm.

Copyright © since 2021, Andris Švarcs. All rights reserved.

Lets connect

bluesky

youtube

linkedin