Hey friends!
What a week, what a week. This weekend I saw the
Zelda Symphony of the Goddesses and it was awesome. Hope you had great weekend plans too. And now, INTERNET!
Â
Web links of the week
Relicensing React, Jest, Flow, and Immutable.js​
"The Notch" and CSS
A Guide To Virtual Reality For Web Developers
Setting up Vim for React development
Accessibility for developers: Building a frontend that everyone can use
Reactive Animations and CSS Variables
Â
Something that interested me this week
For those of you who follow me on Twitter, you might know that I teach an HTML and CSS class (and soon JavaScript) at a local community center. Some coworkers and I (along with a couple other volunteers) got together to build this course, and it's been really rewarding being able to help a community that can really benefit from it.
This weekend, we held our first adult class! We had been teaching middle schoolers before, and it turned out their parents were also interested in the course too. It was fascinating noticing the differences between the two classes. Some were obvious, like how the adults paid attention SO MUCH BETTER than the kids, and some were surprising, like how much more quickly the kids were able to pick up the concepts compared to the adults. The adult class was definitely fun though, at the end they had a lot of practical questions like how to set up online shops, how to continue learning, resources at the library, and what tools are best for beginners.
We had a bunch of laptop donations from people around the country that made this class possible. Many people in the community don't have computers, and we were able to teach our entire class with the donated computers. Huge huge thanks to those out there that offered their help, it really made a difference! If you're interested in hosting a class yourself, I have a fairly large
open-sourced HTML & CSS tutorial that we use as our "curriculum" and you should feel free to use it yourself!
Â
Interview question of the week
Last week, I made a mistake in the solution for the problem (it should have been 44, not 45). Sorry about that to anyone who tried it out!
I also got a request for solutions to the previous week's problem. Ask and you shall receive!
function seatsInTheater(nCols, nRows, col, row) {
var min = ((nCols - col + 1) * (nRows - row)) + (nCols - col);
var o = col * (nRows - row) + (col - 1);
if (o < min) min = o;
return min;
}
This week's question:
Write a function duplicate that takes in an array arr and an int n, and returns an array that duplicates arr n times.
Example:
> duplicate([1,2,3,4,5], 2); // [1,2,3,4,5,1,2,3,4,5]
Â