Hey friends!
I hope your week was a good one! I traveled to San Francisco for Figma Config, and I'm happy to be back home!
Was this forwarded to you? You can subscribe here!
New JavaScript Set methods
Inline conditionals in CSS, now?
How I Learned To Stop Worrying And Love Multimedia Writing
Sticky/Stretching cursor
Primitive Obsession
This week was SUPER busy for me at Figma Config. I was MCing the developer track, which had some really awesome talks around design and development. Here's a playlist of all of the talks if you'd like to watch them (you can see how they were organized in the agenda here if you want to find a specific one)! It's hard to pick a favorite, but I did particularly enjoy hearing Josh Wardle speak about how he made Wordle (also, he played my game Jumblie backstage, which was very fun for me)!
WorkOS: start selling to enterprises with just a few lines of code.
🔐 WorkOS is a modern identity platform for B2B SaaS. It supports User Management along with enterprise features like SSO, SCIM, & RBAC.
🏗️ Unlike other auth providers that rely on user-centric models, WorkOS is optimized for B2B SaaS with an org modeling approach.
🕝 The APIs are flexible and easy-to-use, helping companies like Perplexity, Vercel, and Webflow quickly become Enterprise Ready.
✨ User Management is free up to 1 million MAUs and includes bot protection, impersonation, MFA, & more.
Future-proof your auth stack with WorkOS 🚀
Last week, I had you write a function around waiting for warmer temperatures. Awesome work Josh, Muhammad, Amine, Sid, Kriszti, Ricardo, Gu, Leyan, Ten, Patrick, Theresa, John, Mazen, Mahak, and Luis!
This week's question:
Define a FruitStand
class that allows you to add different types of fruits with their quantities and prices, update them, and calculate the total value of all the fruits in the stand. Implement the following methods: addFruit(name, quantity, price)
, updateQuantity(name, quantity)
, and totalValue()
!
Example usage:
// Create a new fruit stand
let stand = FruitStand()
// Add fruits to the stand
stand.addFruit("apple", 10, 0.5)
stand.addFruit("banana", 5, 0.2)
stand.addFruit("cherry", 20, 0.1)
// Update the quantity of an existing fruit
stand.updateQuantity("banana", 10)
// Calculate the total value of all fruits in the stand
console.log(stand.totalValue())
(you can submit your answers by replying to this email with a link to your solution, or share on LinkedIn, Twitter, Mastodon, or Bluesky)
Mapping the Red Planet With the Power of Open Science
A Buried Ancient Egyptian Port Reveals the Hidden Connections Between Distant Civilizations
Bolero (Bartolomé Calatayud) played by Axelle Bernard
Mode Encore keyboard with WOB keycaps
I went to the zoo yesterday and saw a baguette in a cage.
It was bread in captivity!
That's all for now, folks! Have a great week. Be safe, make good choices, and have fun!
Special thanks to IceSloth, Ezell, Sebastián, Ben, Kinetic Labs, and Faisal for supporting my Patreon and this newsletter!
cassidoo
website | blog | github | twitter | patreon | twitch | codepen | mastodon | bluesky