Hey friends!
It's March! I hope you ended February well. I kinda fell behind on my reading goals, but I got some more side project work done, so... you win some, you lose some. Vámonos!
Was this forwarded to you? You can subscribe here!
Let’s make a web server
TypeScript types can run DOOM (video)
How Core Git Developers Configure Git
Create a HTML5 game like “Golf Dash” with Phaser
I yelled at myself this week to try and stop overthinking some of my own projects and writing and just... get it out there. It's easier said than done, of course, but I'm trying to improve in this area. It's so easy to fall into the trap of wanting things to be perfect!
Also, a fireside chat that I gave a few months ago with Shruti Kapoor went live this week, if you want to learn about networking and getting paid!
The Rawkode Academy provides educational, entertaining, and cutting-edge learning paths for you, or your developers, to keep up with the fast-paced, ever-evolving, and extremely volatile Cloud Native landscape!
The platform is open source, and has 500+ hours of content that covers over 90 projects from the Cloud Native Computing Foundation.
Sign up today or partner with Rawkode to level up yourself, your org, and your developer community!
Last week, I had you tune musical notes! Do re mi fa so-lid work David, Jorge, Austin, Ten, Jawara, Neha, Shreya, Vyaas, Ricardo, and Saleh!
This week's question:
A store is going out of business and will reduce the price of all products by 10% every week leading up to the closing date. Given the closingDate
, visitDate
, and the originalPrice
of a product, write a function that returns the price of the product on the visitDate
. You can assume that originalPrice
is a positive number.
Example:
calculatePrice('2025-04-01', '2025-03-03', 100); // 4 weeks of discounts
> 65.61
calculatePrice('2025-04-01', '2025-03-15', 50); // 2 weeks of discounts
> 40.5
calculatePrice('2025-04-01', '2025-04-15', 75); // No discount (visit after closing)
> 75
(you can submit your answers by replying to this email with a link to your solution, or share on Bluesky, Twitter, LinkedIn, or Mastodon)
Mechanical cheese board
What to do with your life
Why You Can’t Get That Song Out of Your Head
This open problem taught me what topology is (video)
Time flies like an arrow. Fruit flies like a banana.
That's all for now, folks! Have a great week. Be safe, make good choices, and close your eyes every few minutes while you're staring at screens!
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