Yet Another Newsletter LOL - Issue #63: Signals



Subscribe to our newsletter

By subscribing, you agree with Revue’s Terms of Service and Privacy Policy and understand that Yet Another Newsletter LOL will receive your email address.

Nick Taylor
Nick Taylor
Another week, another newsletter. Let’s get to it!

Around the Web
Jhey is always dropping great tips centered often around HTML and CSS. This is a great one about the <picture /> element.
Jhey 🔨🐻✨
HTML / CSS Tip ✨

Use <picture> to display different images based on user preferences 🙏

Pass a media query to the <source> element to do things like "Only show a GIF if the user has no motion preferences" 🤙

Or, how about a different logo for light and dark mode? 😎
Signals come to Preact! This is an exciting change that I’m looking forward to trying out. There’s even a compatibility layer for React! 🔥
Introducing Signals – Preact
Jason Miller 🦊⚛
Just so it doesn't get buried: we built Signals for Preact, but it works in React too - even the fancy granular text updates! Just import the @preact/signals-react package.
You don’t always need an explicit state machine, i.e. XState
▶️ You might not need XState…

How to decide between useState, useReducer and XState:
Fun Stuff
My old coworker commented on an article on Big O notation with this funny Tweet. It’s from 2019, but pretty hilarious.
Pranay Pathole
Alternative Big O notations:

O(1) = O(yeah)

O(log n) = O(nice)

O(nlogn) = O(k-ish)

O(n) = O(ok)

O(n²) = O(my)

O(2ⁿ) = O(no)

O(n^n) = O(fuck)

O(n!) = O(mg!)
Words of Wisdom for the Week
A bit of advice as it’s almost time for Hacktoberfest 2022
If you want your OSS project to gain traction there’s really only one thing you need to do: Document it well
Ryan Florence
If you want your OSS project to gain traction there's really only one thing you need to do:

Document it well.

- 10m quick start
- Realistic examples that can be copy/paste/tweaked
- *Contextualized* code samples for every API
- Guides to put APIs together into a real use case
VS Code Tip of the Week
VS Code Tip of the week: - Just Some Dev
Shameless plugs
Nothing going on this week! I’m wrapping this up for Sunday as I’m flying to my offsite in Hawaii! Back to streaming on September 21st!
Nick Taylor
No stream this week peeps! I'm off for a bit, but I'll be back in action with @jamesqquick on September 21st building out cool stuff with SvelteKit!

Mark your calendars and give a follow on Twitch if you aren't already so you know when the goodness drops!
Also, if you aren’t already following me on Twitch, go hit that follow button! Lots of great folks coming on the stream this fall!
My Twitch Fall Schedule
My Twitch Fall Schedule
Did you enjoy this issue? Yes No
Nick Taylor
Nick Taylor @nickytonline

Yes, it’s yet another newsletter folks! I post stuff in Slack and other communities I’m a part of, so instead of losing all those links to the “Slack”hole, I decided to start a newsletter!

So welcome to links to cool and interesting stuff I found on the Internet during the week, with some fun stuff too, and shameless plugs.

In order to unsubscribe, click here.
If you were forwarded this newsletter and you like it, you can subscribe here.
Created with Revue by Twitter.