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 ✨
— jhey 🔨🐻✨ (@jh3yy) September 6, 2022
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
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! 🔥
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…
— Stately (@statelyai) September 6, 2022
How to decide between useState, useReducer and XState:https://t.co/o8Ds28L91l
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:
— Pranay Pathole (@PPathole) July 28, 2019
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:
— Ryan Florence (@ryanflorence) September 9, 2022
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
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!
— Nick Taylor (@nickytonline) August 31, 2022
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
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!