Yet Another Newsletter LOL

Subscribe
Archives
September 11, 2022

Yet Another Newsletter LOL: Signals

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.

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? 😎 pic.twitter.com/Z591kqemLF

— jhey 🔨🐻✨ (@jh3yy) September 6, 2022

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
Introducing Signals – Preact
Preact is a fast 3kB alternative to React with the same modern API.
preactjs.com

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.https://t.co/WtmFOObSZh pic.twitter.com/jRjZERlUFH

— Jason Miller 🦊⚛ (@_developit) September 6, 2022

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:https://t.co/o8Ds28L91l

— Stately (@statelyai) September 6, 2022

Some ways to get better at debugging
Some ways to get better at debugging
jvns.ca

Fun Stuff

My old coworker commented on an article on Big O notation with this funny Tweet. It’s from 2019, but pretty hilarious.

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!)

— Pranay Pathole (@PPathole) July 28, 2019

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.

- 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

— Ryan Florence (@ryanflorence) September 9, 2022

VS Code Tip of the Week

VS Code Tip of the week: vscode.dev - Just Some Dev
VS Code Tip of the week: vscode.dev - Just Some Dev
This came out a while ago, but I wanted to bring it up again because it’s a great collaboration tool…
www.iamdeveloper.com

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!

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! https://t.co/2wIYk74mTC pic.twitter.com/dvmKnEqSiq

— Nick Taylor (@nickytonline) August 31, 2022

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!

Don't miss what's next. Subscribe to Yet Another Newsletter LOL:
GitHub X YouTube LinkedIn Instagram
This email brought to you by Buttondown, the easiest way to start and grow your newsletter.