Sept. 30, 2017, 7 p.m.

🍗 "Don't wish it was easier, wish you were better." - Jim Rohn

rendezvous with cassidoo

Hello friends!

Hope your weekend has been splendid. I've been busy working on side projects this week (with at least half of them having deadlines at the same time), so it's been a little stressful, but good.  Let's surf!
 

Web links of the week

GitPoint app
How I Built My Own "React" in Two Days - and Why I Did It
Modern JavaScript Cheat Sheet
Get to know the Actor Model
nivo
 

Something that interested me this week

I was watching some game development live streams this week and learned about a concept called Inverse Kinematics. Long story short, it's to calculate positions in a joint system so that it will reach a certain goal. Outside of game development it's used a lot in robotics (a friend of mine mentioned working on a robot that grabbed certain objects using this algorithm).  Here's a cool article on the subject that has some helpful pseudocode and practice scenarios, and here's another with some great diagrams.
 

Interview question of the week

We had a few answers to last week's interview question. Here's how I did it!
function duplicate(arr,n) {
  return (arr.toString() + ',').repeat(n).split(',').slice(0,-1);
}

I’m pretty proud of this answer. It turns array arr into a string, adds a comma to the end (because in JavaScript, turning arrays into strings keeps the commas), uses the string repeat() function n times, converts the resulting string back into an array by splitting it with the commas as delimiters, and then removes the last element (which will be blank because of the trailing comma).  I love one-liners!

And here’s this week’s question:

Let’s do a (sort of) inverse kinematics question. Given an int armLength, int pair armOrigin, int jointPosition, and int pair target, return a boolean true if the target is reachable by the arm.

Example:

> reachable(15, [0,0], 5, [10,10])
> true

Bonus points: print the position of the joint when the arm reaches the target!
 


Cool things from around the internet

On Saying “I Love You” Only When You Mean It
67g Zilent Blacks w/ Krytox 106 (feat. DSA Hyperfuse on Canoe)
The Brain by Olson Sundberg Kundig Allen Architects
Sign Painting on Car Windshields
 


Joke

Someone broke into my house last night and stole my limbo trophy. How low can you go?
 


Alrighty folks, have a great week, be safe, make good choices, and give someone a hug that needs one!

cassidoo


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