Friday Issue Nr.101

2024-02-23

back

CSS utility and Tailwind’s bullshit. Apple and PWA. The React compiler is nearly there, as well as Qwik intro to the next level, HTML vs React, specificity battle game, and Colour Spaces - also a good read about colours.

JavaScript News

React Labs and React Compiler

It looks like React is coming back with flying colours. It becomes pretty powerful with compiler and use client/use server directive. Also, it is a bit confusing, but React Compiler is what used to be React Forget. In any case, the research project is now already powering Instagram in prod. That also means all those memory hooks (useMemo, useCallback) and fine-tuning improvements could go away.

https://react.dev/blog/2024/02/15/react-labs-what-we-have-been-working-on-february-2024

HTMZ

Another micro-framework. If I get it right, the framework leverages the browser’s native power to parse the iframe’s HTML, then takes this result and applies it to the DOM via an unload handler.

https://leanrada.com/htmz/

Qwik

There is a post from the Qwik team on what will be introduced in the next version.

Here is a preview.

1
<div q:container="paused" q:render="static-ssr" q:version="dev" 
2
     q:base="/build/" q:locale q:manifest-hash="dev">
3
  <main>
4
   Count: 123!
5
   <button on:click="...">+1</button>
6
  </main>
7
  <script type="qwik/state">[...]</script>
8
  <script type="qwik/vnode">!{{HDB1}}</script>
9
</div>

https://www.builder.io/blog/qwik-2-coming-soon

HTMX vs React: A Complete Comparison

https://semaphoreci.com/blog/htmx-react

Immutable array updates with Array.prototype.with

1
const ages = [10, 15, 20, 25];
2

3
const newAges = ages.with(1, 16);
4
console.log(newAges); // [10, 16, 20, 25]
5
console.log(ages); // [10, 15, 20, 25] (unchanged)

https://web.dev/blog/array-with

CSS News

CSS utility first

Oh, I waited for this kind of post! I was really thinking if I’m mad or world around me is mad. At first I thought I don’t get Tailwind but hey, I get CSS. Why do we need those utilities?

https://heydonworks.com/article/what-is-utility-first-css/

Specificity battle

Excellent training game from Lea Verou

https://css.land/specificity/

How to create a glowing hover effect

https://frontendmasters.com/blog/glowing-hover-effect/

A Gooey Marquee

Fascinating CSS only effect where letters are blurred at the start and end of the animation.

https://codepen.io/amit_sheen/pen/wvORNYm

Mixed News

Color Spaces

Amazing interactive article about colours, colour trigonometry and how those colours are arranged.

https://ericportis.com/posts/2024/okay-color-spaces/

Apple and PWA

Apple never liked PWA and implemented features very slowly. Also it use to be very cumbersome to add PWA in iOS. In any case, this is a sad story as I find PWA very powerful and useful.

https://open-web-advocacy.org/blog/its-official-apple-kills-web-apps-in-the-eu/

SVG Flags

Handy collection of SVG Flags

https://nucleoapp.com/svg-flag-icons

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