Daniele
danieleirsuti.dev
Daniele
@danieleirsuti.dev
I write javascript stuff to pay my rent

Member of GDG Pescara
Reposted by Daniele
Oh look @michaelwarren.dev with @kevinpowell.co on one of my favorite topics — web components!

youtu.be/qUhtlnL48yA?...
How to use Web Components, and why you'd want to
YouTube video by Kevin Powell
youtu.be
November 19, 2025 at 3:09 PM
Reposted by Daniele
📚 I haven’t written much at all about the “front of the front-end” on my blog, but since I’m now working on the design engineering team @sentry.io and also maintained the design-system at adverity for some time, I have opinions there as well 😬:
Tooltip Components Should Not Exist
A look at why tooltip components are often the wrong abstraction in design systems, leading to accessibility issues, misuse, and inconsistent user experiences.
tkdodo.eu
November 17, 2025 at 6:23 PM
Reposted by Daniele
Whoa. This would be incredible for frameworks like Astro. Enough to make me reconsider my dream of removing streaming support.
Out-of-order HTML patching, another proposal from TPAC, lets HTML be presented non-linearly, and a single file can update multiple parts of the page.

Would this feature be useful to you?
November 19, 2025 at 6:09 PM
Finally.
“GitHub no longer uses toasts because of their accessibility and usability issues.”

Music to my ears!

primer.style/accessibilit...
Toasts
GitHub no longer uses toasts because of their accessibility and usability issues.
primer.style
November 18, 2025 at 8:16 PM
Reposted by Daniele
✅Announcing Vitest 4.0 ✅

Our latest Vitest update brings Browser Mode to stable, allowing you to test your UI in real browsers like Chrome.

Also new:

- Visual Regression Testing to catch unintended UI changes
- Playwright Trace support for easier debugging

voidzero.dev/posts/announ...
Announcing Vitest 4.0
Vitest 4.0 is released with Browser Mode being marked stable, Visual Regression testing support, and Playwright Trace support. The Vitest team will focus on performance improvement in the upcoming…
voidzero.dev
October 22, 2025 at 3:47 PM
Quest’anno é stata una gioia realizzare grafica e sito di devfest.gdgpescara.it !!!

#devfest #pescara #gdg
Devfest Pescara 2025
Join us in Pescara, IT for our conference. Featuring distinguished speakers, workshops, and lots of fun in between. See you there!
devfest.gdgpescara.it
October 16, 2025 at 11:56 PM
Question for React devs: With the new use API, which isn't a hook, how are you naming your context-consuming functions?

The classic useMyContext pattern feels odd if the function is just a wrapper for use(MyContext). Does it still count as a hook, or are you using a new naming scheme?

#ReactDev
September 18, 2025 at 9:43 AM
Alla fine ho scritto un post sull'IA anch'io

danieleirsuti.dev/blog/la-moss...
La mossa 37: il cammino verso l’irrilevanza
La Mossa 37 non è solo un trionfo dell'AI: è l’inesorabile cammino verso l’irrilevanza dell’essere umano
danieleirsuti.dev
April 28, 2025 at 8:57 AM
Reposted by Daniele
Vitest
Next generation testing framework powered by Vite
main.vitest.dev
March 9, 2025 at 2:22 PM
Today, I came across this small piece of code for mocking, but I'm not sure if it's a good approach.
The environment is #JSDOM, and the testing tool is #Vitest.

The purpose of this test is to mock "window.location.assign" and "window.open"

Test experts, help.
February 12, 2025 at 1:43 PM
Sviluppare applicazioni web frontend è difficile, stare al passo con le novità è stressante e JavaScript è sempre il problema.
C'è del vero: dovremmo rivedere il modo in cui lo utilizziamo oggi.

danieleirsuti.dev/blog/la-demo...
La demonizzazione di JavaScript
JavaScript è una barzelletta di linguaggio, dovresti impararne uno vero per poterti definire programmatore
danieleirsuti.dev
February 7, 2025 at 9:47 AM
Just updated my website to #astro 5.2.3 and #tailwind 4.0.3 and my css blew up 🤔
Locally it works but in production... well, not good. No clues what's happening.

live: danieleirsuti.dev
old build: danieleirsutidev-jqrie8cj8-daniele-irsutis-projects.vercel.app
Daniele Irsuti, frontend developer
Specializzato in applicazioni React, React Native, JS vanilla
danieleirsuti.dev
February 3, 2025 at 11:37 AM
Dear frontend users: Stop using the "custom" prefix when you have no ideas on how to name things, like:

Custom component;
customClass;
custom date;

Stop it.
Thank you.
January 28, 2025 at 10:46 AM
Reposted by Daniele
ah this works
January 27, 2025 at 1:19 AM
@vitest.dev silently updates to v3.0.0? 👀
January 16, 2025 at 2:42 PM
Reposted by Daniele
Must reads for web developers - how modern browsers work:

1️⃣ bit.ly/browsers-pt1
2️⃣ bit.ly/browsers-pt2
3️⃣ bit.ly/browsers-pt3
4️⃣ bit.ly/browsers-pt4

and browser.engineering a free to read book on the topic
January 12, 2025 at 11:57 AM
I tried so hard to use astro actions to handle a silly contact form and I don't think is a good idea if you want to use it in a progressive enhancement approach because there are no (ergonomic) ways to get partial input values if something goes in error 🤷‍♂️
January 8, 2025 at 11:48 PM
Exploring @astro.build and React form actions: is there a way to progressively enhance the form to restore filled values when a validation error occurs in some fields?
December 25, 2024 at 2:18 AM
Reposted by Daniele
Did you know it's called the View Transition API (and not the View Transitions API [plural])?

Now MDN knows too (github.com/mdn/content/...) so there's no reason to keep using the wrong name.

Learn about this and other misconceptions in this post: developer.chrome.com/blog/view-tr...
Misconceptions about view transitions  |  Blog  |  Chrome for Developers
With more and more people starting to look into the View Transition API, it's time to debunk some misconceptions.
developer.chrome.com
December 21, 2024 at 12:43 AM
TIL: don't spread Request object ✅
December 16, 2024 at 2:25 PM
Reposted by Daniele
Cool, Blizzards design system is custom elements built with @lit.dev
December 10, 2024 at 9:42 PM