Jan. 21, 2018, 6 p.m.

🍄 "How soon 'not now' becomes 'never'!" - Martin Luther

rendezvous with cassidoo

Hello friends!

I hope you had a good week. I had a productive one myself. Let's get reading!
 

Web links of the week

A Guide to Building a React Component for npm
Manta
Instagram.css
The Ultimate Guide to JavaScript Frameworks
 

Something that interested me this week

My office got a Glowforge (that they ordered YEARS ago on Kickstarter and it finally came!) and I have been going absolutely ham on it. I've been making all sorts of things, like fun boxes, keychains, keyboard cases, and even board game pieces.  I have almost burnt down my office (twice) in the process, but it's been so fun!!  I've been learning more and more about laser cutting, materials to cut, and even just remembering some of the math of shapes to put things together.  It feels like the future, honestly. You can think of something, draw it out or type it, and with a push of a button you suddenly have this physical object that you can use. It's very much like building software, in a way, making something out of nothing. I definitely recommend trying out a laser cutter, if you have access to one!
 

Interview question of the week

Last week, I threw y'all a little bit of a softball and asked you to determine if there was a rectangle given 4 integers representing the lengths of each side.

This is an quality problem. If all four sides are the same length, or there are equal pairs, you have a rectangle. One of you folks came up with another interesting idea, too. 
function isRectangle(a, b, c, d) {
  if (a === b && a === c && a === d && c === d && b === c && b === d) 
    return true;
  else if (a === b && c === d)
    return true;
  else if (a === d && c === b)
    return true;
  else if (a === c && d === b)
    return true;
  else
    return false;
}


This week’s question:
Let’s say that you have a bunch of ropes of various lengths, and you want all of them to be the same length. You have to find the shortest one, and cut all of the ropes to be that length.
Given an int array of rope lengths, return a new array of how much each rope should be cut.


Example:
> ropeCuts([2,2,5,1,6])
> [1,1,4,0,5]
 


Cool things from around the internet

The Legend of Zelda: Ocarina of Time’s dungeon design
A Mathematician’s Keyboard
How to Pick a Lock
Apple Leak Reveals Sudden iPhone X Cancellation
 


Joke

I was feeling kinda lonely so I bought some shares.
It’s nice to have a bit of company.
 


That’s all for this time, folks. Be safe, make good choices, and stretch your hands after reading this (it’s good for you).
cassidoo


You just read issue #41 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