Welcome to my PinkLetter. A short, weekly, technology-agnostic, and pink newsletter where we cultivate timeless skills in web development.
What if I told you that luck is a skill?
That would change everything, wouldn’t it? You could make yourself luckier by doing things differently. It turns out you can.
Imagine two different universes. In the first one, you decide to spend all day binge-watching Cobra Kai on Netflix. In the second one, you go to a meetup and talk to a bunch of people. It’s the same amount of time, but which one is more likely to make you lucky?
Sure, there’s no guarantee something unexpectedly good will happen if you put yourself out there. At the same time, I can assure you that watching Netflix will not make you lucky. And, if there’s anything we learned from
poker statistics, it’s that if you keep doing things with odds in your favor for enough time, good things will happen (statistically).
However, I wouldn’t judge you for watching Cobra Kai. Season 5 is awe-some!
These techniques are complementary to what you already know! They don’t replace memo or useMemo, but they’re often good to try first.
Riccardo: A couple of React tricks to keep up your sleeves.
If you’ve read a lot of articles about decision making, you might think that good decision making is simply a function of applying the right decision-making frameworks to the world, and then reaping the benefits.
Riccardo: If you overthink like me, consider taking action. I posted a TL;DR of the article on Twitter.
They’re all edge cases. 90% of the recipes in the book could be represented just fine in my original data model. Using them is made harder by the existence of the edge cases.
Riccardo: What do you think about separating common case vs weird case?