June 24, 2018, 7 p.m.

🤘"If you expect your friends to be perfect, you won’t have any friends." - Bob Parsons

rendezvous with cassidoo

Hey team!

Welcome back! Sorry I missed out on sending this out last week. If I'm being honest, I totally forgot and went to bed early. Oops. 🙃

Anyway, onward!
 

Web links of the week

Paper.js
The Cost of JavaScript
Writing your own ESLint Plugins
Tenuki: a web-based go board and JavaScript library
Bunny tab switching
 

Something that interested me this week

My goodness friends, it was a crazy week of news. It really made me think about the capacity of humans to take bad news. I don't know if there's been any studies on the subject (I couldn't find any), but we're at a point in history where we're absorbing more news and information than ever before. It's easy to feel overwhelmed and small when you're so bombarded by everything.

That being said, here are some of the things I've been grateful for during the past week for giving me a mental break:
- Incredibles 2 + Ocean's 8, both really fun movies I genuinely enjoyed
- The Great British Baking Show, basically a show chock full of wholesome memes
- Fortnite, my latest game obsession
- CodePen Challenges, it's so fun both coding and seeing what people have made
- /r/MechanicalKeyboards, my home
- The Steam Summer Sale, fun for the brain, bad for the wallet
 

Interview question of the week

Last time, I had you return a pair whose product is closest to a number, given an array and said number. Thomas Vaeth did a great job with his solution! 

I'm excited about this week's question, it's funky (and one that someone was given recently in real life):
Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able to trap after raining.

Example:
waterTrap([2,0,2])
> 2
Structure is like this:
| |
|_|

waterTrap({3, 0, 0, 2, 0, 4})
>10
Structure is like this:
     |
|    |
|  | |
|__|_| 
(We can trap 6 units of water between 3 and 2, 1 unit on top of bar 2, and 3 units between 2 
and 4)
 

Cool things from around the internet

SA Oblivion Photo Album
Four Reasons We Don’t Have Flying Cars—Yet
Building Complex Machines Using LEGO
True Stories from IKEA
 

Joke

How do you think the unthinkable?
With an itheberg.
 
That's all for now, folks! Hope you have a great week. Be safe, make good choices, and wash your hands.

cassidoo

You just read issue #61 of rendezvous with cassidoo. You can also browse the full archives of this newsletter.

Share on Twitter Share on LinkedIn Share on Hacker News Share on Reddit Share via email
GitHub Website LinkedIn