Hey friends!
I hope you're safe, happy, and healthy. I feel like the news has been bogging me down a bit too much lately, so I hope this can be a nice reprieve for us both!
Was this forwarded to you? You can subscribe here!
Duplication Is Not the Enemy
CSS Grid for Multi-Sized Avatars
Write more reliable JavaScript with optional chaining
document.currentScript
is more useful than I thought.
TC39 Advances Several Proposals
Last week I mentioned that I shipped a side project called PocketCal! It's a simple way to find and share dates, and it's been fun to see folks checking out the repo and reading how I built it.
I have some other projects that I want to work on (...so many unused domain names, gosh), but have been so busy with my baby and toddler that I just sleep (or dissociate lol) if I get a moment to breathe in a day. Our youngest crossed the 6-week mark this week, which means more sleep is on the horizon, right? Right??
Unlock Your Career Potential with Keenesse
Feeling stuck, or ready for your next big move?
Keenesse offers personalized career coaching to help you gain crystal-clear career goals, pinpoint exciting advancement opportunities, and master crucial skills like resume optimization, interview mastery, and confident negotiation β all to land your dream role in a competitive market.
Our expert team of seasoned tech industry coaches provides tailored support at every career stage, from ambitious students to accomplished executives.
Ready? Schedule your free, no-obligation consultation today at keenesse.com.
Last week, I had you nest an array! Why? Because I'm a rascal. Great job, fellow rascals Muhammad, Winnie, Miguel, David, Saravana, Elke, Tim, Ten, Austin, ashuzon, Tom, Brian, Neha, Kriszti, Patrycja, Max, and Tarang!
This week's question:
Given an array of strings representing a sequence of traffic light states ("red" for stop, "green" for go, "yellow" for slow), write a function that returns true
if the sequence could represent a valid state machine for a standard traffic light. The only valid transitions are: red to green, green to yellow, and yellow to red.
Example:
> isValidTrafficSequence(["red", "green", "yellow", "red", "green"])
> true
> isValidTrafficSequence(["red", "yellow", "green"]);
> false
> isValidTrafficSequence([])
> true
(you can submit your answers by replying to this email with a link to your solution, or share on Bluesky, Twitter, LinkedIn, or Mastodon)
AJAZZ AKS068 w/ Gateron Milky Yellow V2 (video)
Ethnologue: Languages of the World
Date Night Questions
Scientists create "world's smallest violin"
Just read a few facts about frogs.
They were ribbiting.
That's all for now, folks! Have a great week. Be safe, make good choices, and hug your loved ones!
Special thanks to IceSloth, Ezell, SebastiΓ‘n, Ben, Kinetic Labs, and Marta for supporting my Patreon and this newsletter!
cassidoo
website | blog | github | bluesky | twitter | patreon | twitch | codepen | mastodon