Friday Issue Nr. 112 | 24/05/2024

This week's newsletter is a diverse mix of content, including a chess game or JS quiz, hot news on Remix + React Router and Angular 18 for the developers, another Music Library for the music lovers, anchor positioning, and a thrilling detective story on a stolen subdomain for the mystery fans.

JavaScript News

Why should you use JSDocs?

Deno wrote a good post on JSDocs. “While a good README answers “why should I use your package?”, good documentation should answer “how can I use your package?”.

https://deno.com/blog/document-javascript-package

React Compiler (Experimental)

https://react.dev/learn/react-compiler

YT good summary: https://www.youtube.com/watch?v=dbzwIU2m3tA&t=1s

Merging Remix and React Router

https://remix.run/blog/merging-remix-and-react-router

Angular 18

https://blog.angular.dev/angular-v18-is-now-available-e79d5ac0affe

Coding handwriting

Amazing experiment to convert text into handwritten letters with JavaScript. My only comment is that I couldn’t achieve that as my handwriting is awful.

https://www.amygoodchild.com/blog/cursive-handwriting-in-javascript

Is Next.js more complicated to use?

https://www.propelauth.com/post/nextjs-challenges

Music Library

Another notes library, but this one not only does show the notes, but it also plays music. Also, the guitar sounds funny, but it is good enough to help understand the flow.

https://www.alphatab.net/

Vue fluid DnD (not the draggons)

Pretty nice drag-and-drop animations for simple use cases.

https://vue-fluid-dnd.netlify.app/

React Chessboard

Demo: https://react-chessboard.vercel.app/?path=/story/example-chessboard--play-vs-random

Code: https://github.com/Clariity/react-chessboard

JavaScript daily quiz

https://app.withcodeexample.com/quiz

CSS News

Chrome 125

With a bunch of other things, Chrome has enabled CSS anchor positioning. This will let you build, for example, popover in a declarative way without the use of JavaScript.

https://developer.chrome.com/release-notes/125#css_anchor_positioning

Pure CSS Solar system with trigonometric functions

https://codepen.io/ekros/pen/rNbGebK

Font size on the web

Deep dive into how Airbnb approached font-size challenges and used REM for fonts but not layouts.

https://medium.com/airbnb-engineering/rethinking-text-resizing-on-web-1047b12d2881

CSS container queries

Chris Coyer on container query usage and why we are not using them (yet).

https://frontendmasters.com/blog/weve-got-container-queries-now-but-are-we-actually-using-them/

Preview your type scale

Fantastic resource which will help you create font types with clamp() and make all the font sizes.

https://www.fluid-type-scale.com/calculate?minFontSize=16&minWidth=400&minRatio=1.25&maxFontSize=19&maxWidth=1280&maxRatio=1.333&steps=sm%2Cbase%2Cmd%2Clg%2Cxl%2Cxxl%2Cxxxl&baseStep=base&prefix=fs&decimals=2&useRems=on&remValue=16&previewFont=Inter&previewText=Almost+before+we+knew+it%2C+we+had+left+the+ground

Mixed News

Detective story

Apparently, it is possible to take over your subdomain in specific situations. My question is, how can you discover that some random subdomain is pointing to a deleted AWS bucket?

https://humanwhocodes.com/blog/2024/05/someone-temporarily-took-over-subdomain/

Design System Checklist

https://www.designsystemchecklist.com/

Tips to improve your personal website

It is more like a reminder about the benefits of a static website, reduced JavaScript, images in modern format, and so on.

https://blog.sentry.io/5-easy-tips-to-improve-your-personal-website-performance/

Web performance

Just a reminder that 5G is not everywhere and it is important to keep Web pages slim or otherwise business will suffer.

https://www.sarahgebauer.com/post/lesson-from-a-rural-bus-for-web-developers/

Comment on Mastodon