Hey friends!
If you celebrate it, Happy Easter! Or Passover! Or mid-April! Let's learn.
Was this forwarded to you? You can subscribe here!
Typography troubles: Balancing lines in Japanese & Korean
Lessons Learned from Recreating a Styled Dialog
Astro 5.7
Withdrawal of the Records and Tuples proposal for ECMAScript
I am, as of writing, officially on maternity leave! I'm due to give birth this week and it's kind of blowing my mind that by the time the next issue of this comes out, I'll have another little human in my life.
That being said, it was a mad rush to "the finish line" to get stuff done at work before I was officially out!
And one more personal thing, I finished up working with Stack Overflow on their newsletter, blog, and podcast! End of an era blog post is here. Good ending, good timing with a new kiddo, and onwards and upwards!
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 sum a connected path in a grid! Awesome job Muhammad, Ten, Kyle, Nick, Saleh, and Neha!
This week's question:
Given an array of objects representing ingredients (each with a name and amount per serving), and a target number of servings, write a function to calculate the required amount of each ingredient for the target servings. Return the results as an array of objects with name and amount. Can you do this in less than 5 lines? In one?
Example:
const ingredients = [
{ name: "flour", amount: 200 }, // 200g per
{ name: "sugar", amount: 100 }, // 100g per
{ name: "eggs", amount: 2 } // 2 eggs per
];
const targetServings = 3;
> calculateIngredients(ingredients, targetServings);
> [
{ name: "flour", amount: 600 },
{ name: "sugar", amount: 300 },
{ name: "eggs", amount: 6 }
]
(you can submit your answers by replying to this email with a link to your solution, or share on Bluesky, Twitter, LinkedIn, or Mastodon)
(you might see some repeat questions for the next few weeks because... new baby)
Inside Africa's Food Forest Mega-Project (video)
Grid650 with Teal Wavez module + GMK Hammerhead Light
Still Tasty
A lack of frequency increases the pressure to deliver quality
What's the worst thing about ancient history class?
The teachers tend to Babylon.
That's all for now, folks! Have a great week. Be safe, make good choices, and see ya on the other side!
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