rendezvous with cassidoo

a tech newsletter for you

Cassidy's face

Issue #239: "Never interrupt someone doing what you said couldn't be done." - Amelia Earhart

View on Buttondown

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


Something that interested me this week

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).


Interview question of the week

Last week, I had you make a hashmap! Great job https://twitter.com/iam_aishek/status/1500899061406253066">Alexandr, https://twitter.com/willf___/status/1500864974096318465">Will, https://twitter.com/CoderDan/status/1500804769409024003">Dan, https://twitter.com/les_peters/status/1501196409483239424">Les, https://twitter.com/TomBredemeier/status/1501229297255665664">Tom, https://twitter.com/rafaelmdribeiro/status/1501302165473800196">Rafael, https://gist.github.com/redrambles/ae272705cc2f135756048a5090965a0d">Ann, https://github.com/djavorszky/iqotw/blob/main/src/y22/mar7.rs">Dan, and https://twitter.com/tzyinc/status/1503035964129964032">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]
]

Cool things from around the internet

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


Joke

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


Want this in your inbox every week? Subscribe here!