Hellllooo!
I hope your week was a good one. Mine was tiring (what else is new?) but I had a good time with family and friends. Let's boogie.
Was this forwarded to you? You can subscribe here!
100+ new CSS features from the past 5 years
Why do browsers throttle JavaScript timers?
How I Wish Web Components Worked
Donβt Inherit the Box Model
This week was kind of chaotic in the news, but I was mostly disconnected from it while hanging out with my kiddos, seeing relatives, eating with friends, and watching the k-drama Vincenzo (it's weird and very funny). I think it was good for my brain to not be hyperaware of everything!
I did make a tree visualizer (the data structure, not the nature kind), which was pretty fun. Here it is if you want to check it out!
No sponsor this week (the economy, amirite?), but I'm still grateful you're looking here. Have a good week, check out Ductts, check out PocketCal, and dream of a calmer tomorrow.
I'd appreciate deeply if you share this newsletter with your friends, coworkers, or anyone you think might like it. Or who might hate-read it. Or who might just be bored and want another email in their inbox every week.
<3
Last week, I had you sum up neighboring elements in an array! Awesome work Sreetam, Jonathan, Mike, Collin, Miguel, David, Elke, Muhammad, Victor, Gavin, Paul, Amine, Sergio, Ten, Leyan, and Kaartic!
This week's question:
You are given an array of arrays, where each inner array represents the runs scored by each team in an inning of a baseball game: [[home1, away1], [home2, away2], ...]
. Write a function that returns an object with the total runs for each team, which innings each team led, and who won the game.
Example:
const innings = [[1, 0], [2, 2], [0, 3], [4, 1]];
> analyzeBaseballGame(innings)
> {
homeTotal: 7,
awayTotal: 6,
homeLedInnings: [1, 2, 4],
awayLedInnings: [3],
winner: "home"
}
(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 Need to Be Bored. Here's Why. (video)
How celery salt wound up on the Chicago dog
Fixing the Biggest Problem With Mechanical Keyboards (video)
7 Questions from Aspiring Board Game Designers (video)
All 54 lost clickwheel iPod games have now been preserved for posterity
Roman numeral puns are awesome, and I, for one, will continue to make them!
That's all for now, folks! Have a great week. Be safe, make good choices, and write more!
Special thanks to Ezell, Ben, Kinetic Labs, Marta, and Flora for supporting my Patreon and this newsletter!
cassidoo
website | blog | github | bluesky | twitter | patreon | twitch | codepen | mastodon