Hot tips are spicy lil' nuggets related to web development and tooling that I share on my twitter account. I've logged them here to make them easier to find.
Did you know TypeScript <Generics> don't always need to be explicitly set?
You can infer their types by the type of data being passed! Super powerful approach when writing library or util code.
317381010158K
34110
235385.7K
Server-full Servers
Serverless Functions
Edge Functions
Three kinds of servers - whats the difference?
54461816K
Quality
Quality
PlayPause
0:00 / 0:00MuteUnmute
1x
Playback rate
Settings
The $10 LED tinkerer project:
I got my $5 ESP32 turning off a $4 set of WS2813 LEDs with a $1 PIR sensor
Inspired after having Nick Hehr on the Podcast, where he goes in depth about his projects and even how to get JavaScript running on the microcontroller.
43132214K
47022.4K
Quality
Quality
PlayPause
0:00 / 0:00MuteUnmute
1x
Playback rate
Settings
CSS is getting margin-trim!
Remove margins from children that touch the sides of a parent. No more selecting :last-child
5K3529884K
2.2K33332437316K
1.3K33
Here’s a rundown of the open AI podcast show notes stuff I’ve been working on for the new syntax website.
106572.8K
Quality
Quality
PlayPause
0:00 / 0:00MuteUnmute
1x
Playback rate
Settings
Stop typing twice!
Here is how to collected multiple named exports and import them under a single JavaScript variable in ESM
469131512K
1524
1221353624K
Quality
Quality
PlayPause
0:00 / 0:00MuteUnmute
1x
Playback rate
Settings
CSS logical properties specifies width/height/padding/border/etc using inline + block instead of top + bottom.
But where is that actually useful?
Here is a good example I just ran into with writing-mode: vertical-rl;;
9715113725K
24651313K
Quality
Quality
PlayPause
0:00 / 0:00MuteUnmute
1x
Playback rate
Settings
The Async Context / AsyncLocalStorage API is pretty neat - you can create a store and acesss it anywhere down the callstack context without having to pass around data.
It's kind of like closure scope, but but for the async context of your function calls.
2733879489K
1373
429101910K
Quality
Quality
PlayPause
0:00 / 0:00MuteUnmute
1x
Playback rate
Settings
I had to show someone this.
I wanted to use background-clip: text; but with a canvas or video element - not just a background image.
So I came up with this monstrosity that actually works!
20916127535K
1316
200574.9K
Quality
Quality
PlayPause
0:00 / 0:00MuteUnmute
1x
Playback rate
Settings
Been hearing a lot about JavaScript Signals lately?
With just a few lines of code you can take your Vanilla JS variables and make them reactive.
Here is a little demo I whipped up using Preact Signals - can be used without a framework!