Hello friends!
I hope you had a good week. Here in Chicago it’s St. Patrick’s Day season, and they’ve dyed the river green and there’s some great deals on corned beef. Anyway, let’s surf.
Was this forwarded to you? You can subscribe here!
React 18 Release Candidate
How open source is supporting NASA’s new eyes in space
When is onChange not the same as onChange?
Building Web Layouts For Dual-Screen And Foldable Devices
I experimented with SolidJS for the first time this week on my livestream! It was interesting. It’s a lot like React, but with some very specific rules I didn’t expect. Here’s the repo for the demo that we built on the stream.
This week’s issue is sponsored by Bytes!
Bytes is probably the funniest web dev newsletter you’ll ever read (besides this one, of course). If you like my newsletter, I’ve got a feeling you’ll love it too. It’s got a great level of snark in every issue.
Check it out (at least for the memes).
Last week, I had you make a hashmap! Great job Alexandr, Will, Dan, Les, Tom, Rafael, Ann, Dan, and Ten!
This week’s question:
Given a matrix of 0s and 1s where 1s represent a Tetris block, and a rotation direction, return the matrix with the block rotated once. You can use this guide for a hint to the algorithm!
Example:
let grid = [
[0,1,0,0],
[0,1,1,1],
[0,0,0,0],
[0,0,0,0]
]
$ rotateTetromino(grid, 'clockwise')
$ [
[0,0,1,1],
[0,0,1,0],
[0,0,1,0],
[0,0,0,0]
]
Is Your Brain Foggy? Here Are Five Ways to Clear It
How Does Perspective Work in Pictures?
Future Computers Will Be Radically Different
Mason60 + Konpeitou Switches Sound Test
What do you call a caveman’s fart?
A blast from the past!
That’s all for now, folks! Have a great week. Be safe, make good choices, and be grateful for the peaceful moments you can find.
Special thanks to Gabor, Stephen, IceSloth, Alaska, Josh, Conor, Ezell, Pedro, Karthic, Ximena, Paige, Zev, Sebastián, and Ben for supporting my Patreon and this newsletter!
cassidoo
website | twitter | patreon | github | twitch | codepen | polywork