Hola friends!
Another week has passed. At last! Hope you enjoy the next one.
Web links of the week
Yes, That Web Project Should Be a PWA
Every programmer should know
Rythm.js: A javascript library that makes your page dance
innerself: A tiny view + state management solution using innerHTML
The zen of Just Writing CSS
Quokka.js: Live Scratchpad for JavaScript
Something that interested me this week
This week, I discovered and competed in an event called Pundamonium, a monthly pun-making competition in Seattle! It was SO fun. There are 10 people competing, and each are given a topic and 15 minutes to create a pun-filled standup routine around that topic. Topics can be pretty much anything; my opponents had some like Star Trek, 90s music, and dinosaurs.
Mine was "Australia", and I talked about how I "kangaroo" out of some bad habits, and a bunch of other "auss-ome" stuff. Then, for round 2, we had to pick a topic out of a hat and you had 30 seconds to come up with a routine around that. For that one, my topic was "fruit" and I talked about how Seattle is "bananas" and how a lot of people "tomato" the line when they come up and talk to you. And finally, in the last round, the top four punsters went head-to-head and had to pick a topic and say as many puns as they could back and forth until someone couldn't anymore. My topic for that one was "ocean" and I floundered a little bit, but it was still super fun.
After the show, I went on to watch some videos online and found a whole subculture of people who do pun competitions for prizes.
This video was probably the most impressive I saw, where the punster did a whole politics routine and named every U.S. president IN ORDER as she went through it. Amazing.
I don't know if I'll do Pundamonium again (it was fun but VERY stressful trying to come up with enough jokes in time), but it was a blast and I definitely recommend checking it out if there's one in your area!
Interview question of the week
You are in a full movie theater, and need to use the bathroom. Write a function that will determine the minimum number of people you will bother by getting up to go to the bathroom (assuming the people in your row and everyone behind your row as you stand up and walk will be annoyed with you), given your seat row and column, and the number of rows and columns in the theater.
For example, when numCols = 16, numRows = 11, myCol = 5 and myRow = 3:
> seatsInTheater(numCols, numRows, myCol, myRow)
> 45