Hi there!
We're back. I had a great week at Node Summit and learned about some new things coming out in the JavaScript world (
optional chaining was my favorite) and spoke about Electron (
and jokes, obviously)!
Web links of the week
Build a state management system with vanilla JavaScript
Adding Particle Effects to DOM Elements with Canvas
Getting to Know a Legacy Codebase
v8n
Something that interested me this week
This past weekend was the Seattle Mechanical Keyboard meetup! It was a great time. I spoke about
designing XDA Scrabble, watched a SUPER interesting talk about
stenography with keyboards, and saw so many keyboards.
So.
Many.
Keyboards.
It was a blast, and I can't wait for next time!
Interview question of the week
We had a solid showing of responses this week for removing leading zeros!
Boom bang boing bloop. Click those words to get the scoop.
Also, Andrew emailed this one-liner in:
const removeLeading = (arr) => arr.reduce((acc, curr) => (!acc.length && !curr ? [] : [...acc, curr]));
This week's question:
Write a function that merges n sorted arrays.
Example:
arr[][] = [ [1, 3], [2, 4, 5], [0, 9, 10, 11] ];
> mergeN(arr)
> 0 1 2 3 4 5 9 10 11
Cool things from around the internet
How to fold a napkin into a tree
Sorry, Nerds: Terraforming Might Not Work on Mars
Simon Stålenhag's hauntingly beautiful retro sci-fi art
Pixel Chicago
Joke
Two monkeys enter a bath.
Monkey 1: Oooh oooh oooh aaah aaah aaah
Monkey 2: Calm down, it isn't that hot
That's all for now, folks! Hope you have a great. Be safe, make good choices, and don't sacrifice happiness for productivity.
cassidoo