Hey friends!
I hope you had a wonderful week! I’m very excited about mine, I’m taking a vacation for the first time in a long time visiting family. Let’s surf!
Using the Switch(true) Pattern in JavaScript
SVG Kaleidoscopic Glasses
5 ways to prevent code injection in JavaScript and Node.js
Jamstack SEO Guide
This week at work, we released a Request for Comments for Distributed Persistent Rendering! It’s a lot of fancy words for… incremental building for all web frameworks! If you’d like to play with it yourself, we released a (very) early version of this called On Demand Builders. It’s been a big team effort and I’m so excited to hear any and all thoughts you have on it!
Outside of work… I’m back on the Stardew Valley bandwagon. I have to speed up working on this newsletter so I can harvest my cabbages!
This week’s sponsor is Courier, the fastest way to build notifications for your app!
Your application speaks to your users with notifications, but what do you do when your users don’t all want the same notifications over the same channels? Building the event triggers is annoying enough, but when you have to build templates for multiple channels, track deliverability and performance, and manage granular user preferences, you end up with overwhelming complexity that distracts your team from your core product.
That’s why Courier built it’s API and Notification System as a service. Courier is a place to design, manage, and orchestrate all of your application’s notifications using a simple API. We’ve built a powerful drag-and-drop editor to help you build and send templates over any channel while giving your users full control over their own preferences.
Plug in providers like Twilio, Sendgrid, Mailgun, and Firebase to send Email, SMS, Push, In-App, or even direct messages - Slack / Facebook / Discord / MSTeams / WhatsApp.
Get started today by signing-up for free.
Last week, I had you figure out if you could plant something in a garden. Lovely work Les, Elliot, Tobias, David, Abdiel, Endy, Leyan, Mark, Evan, Amy, Michael, Oana, José, Jean-François, Ivana, Kartik, Shreya, Mike, Linda, Dhanush, Ten, and Rubén!
This week’s question:
Given an integer array, move all 0s to the end of it while maintaining the relative order of the non-zeroes. Bonus: do this without making a copy of the array!
Example:
$ moveZeroes([0,2,0,3,8])
$ [2,3,8,0,0]
This question is brought to you by Pluralsight! If there’s something you’ve been wanting to learn, but haven’t made the time, this is the universe telling you the time is now. Pluralsight is FREE all April long with 7,000+ expert-led video courses, 40+ interactive courses, 20+ projects, and more.
Lo-fi Cafe
The last men’s hotel
The Welshman who mailed himself home from Australia in a box
Iron165 FE with GMK Minimal
Here’s an awesome joke from 10-year-old Naomi!
Why did the ocean break up with the pond?
The relationship was too shallow!
That’s all for now, folks! Have a great week. Be safe, make good choices, and don’t worry too much!
Special thanks to Gabor, Stephen, IceSloth, Luna, Emad, Alaska, and Josh for supporting my Patreon and this newsletter!
cassidoo
website | twitter | patreon | github | twitch I codepen