Hellloooo everyone!
I hope your week was a good one! I enjoyed the Superb Owl this evening (I am sooo good at knowing sports) and have been busy with a bunch of projects in and out of work. Let's gooo!
Build An Among Us Inspired Live-Multiplayer Game with Phaser 3 and Socket.io
Thinking in Jamstack
Don't use functions as callbacks unless they're designed for it
Why Scientists are Turning to Rust
I spoke at Web Stories Conf this past weekend! I admit it was a little bittersweet because I was originally supposed to fly out to France to be a part of it, but the organizers did a great job setting everything up virtually, and the attendees were active and fun. I talked about building tools for yourself to scale your own work, and I think videos will be up soon.
Outside of this, I've been watching Itaewon Class and it's excellent, highly recommend it so far if you're looking for a show!
This week's sponsor is Mux!
If you’ve ever tried to do anything with video programmatically, you've seen the darkness. Acronyms that represent other acronyms, delivery best practices that change faster than JavaScript frameworks, and amazing tools... that come with decades of cruft and complexity. Video dominates Internet bandwidth and, for a lot of companies, engineering sprints.
Mux is the API to video that changes that. Instead of spending your time learning an entirely new vocabulary, you can just think about Video and how you want to use it. What Stripe did for payments and Twilio did for telephony, Mux does for video.
Take any video file or live stream and make it play beautifully at scale on any device, powered by magical-feeling features like automatic thumbnails, animated gifs, and data-driven encoding decisions. Spend your time building the experience and application that people want, not drudging through ffmpeg documentation.
Thanks Mux!!
Last week, I had you remove outdated stocks from a snapshot. To the moon Alisa, Leslie, Taylor, Steve, Mike, Luks, Kuba, Nicolas, Amy, Dimitris, Dhanush, Sam, Leyan, Nathan, Elliot, Jose, Paul, Nelo, Daniel, Ten, Kyle, John, Matheus, Vishwa, Parth, Anna, Jonathan, Obayanju, Vic, Ivana, Ale, David, Fisayo, Miguel, David, Alberto, Griffin, and Alex!
This week's question:
Implement a ProductList
class that has two methods, add(n)
(which pushes the value n to the back of the list) and product(m)
(which returns the product of the last m numbers in the list). David made an awesome template for submitting your solutions, if you'd like to use it!
Usage:
ProductList p = new ProductList(); p.add(7); // [7] p.add(0); // [7,0] p.add(2); // [7,0,2] p.add(5); // [7,0,2,5] p.add(4); // [7,0,2,5,4] p.product(3); // return 40 because 2 * 5 * 4
Varmilo Miya Pro with MX Browns
A coat check ticket, a magic spell
Illusions of Time
I dropped out of communism class because of lousy Marx.
That's all for now, folks! Have a great week. Be safe, make good choices, and don't snooze your alarms!
Special thanks to Gabor, Stephen, Shell, IceSloth, and Luna for supporting my Patreon and this newsletter!
cassidoo
website | twitter | patreon | github | codepen | twitch