797 karma · joined Feb 12, 2014 (12y ago) · 340 submissions
comment 5y ago · link · parent
https://kentcdodds.com/blog/usememo-and-usecallback
TLDR;
> Specifically the cost for useCallback and useMemo are that you make the code more complex for your co-workers, you could make a mistake in the dependencies array, and you're potentially making performance worse by invoking the built-in hooks and preventing dependencies and memoized values from being garbage collected. Those are all fine costs to incur if you get the performance benefits necessary, but it's best to measure first.
2.
Compromised NPM packages of ua-parser-JS (0.7.29, 0.8.0, 1.0.0)(github.com ↗)
38 points · by nop_slide · 5y ago · 6 comments
comment 5y ago · link · parent
https://www.covid-datascience.com/post/do-pfizer-vaccines-ki...
comment 5y ago · link · parent
> I never figured out how to classify nollie/fakie board and lip slides front or back
Yep this one still trips me up to and is great argument over some beers. Especially when you introduce flip tricks into them as well :p
comment 5y ago · link · parent
I have a private discord and github for the project I can add you too. I eventually plan to open up the discord for anyone once we get a little further in the rebuild.
Wish there was a good way to DM on HN, I can send you a discord invite. Or if you happen to be on slap let me know.
comment 5y ago · link · parent
For example:
- nollie fs 180 and fakie fs 180 (fs half cab) are two different directions: nollie fs 180 is in front of you and fakie fs 180 is behind you going blind
- nollie 5-0 and fakie 5-0 (fakie switch nosegrind) lean differently on the grind: nollie 5-0 you pop off your nose and land on your back truck, fakie 5-0 you pop off your tail and land on your front truck
- nollie noseslide and fakie noseslide are different motions to get into the slide: nollie nose you pop off nose and land on the nose in the ledge, fakie nose you pop off tail and land on the nose but you do a sort of half cab
The key distinction in the argument is that in fakie, your tail is always considered your "tail". Therefore you treat any derived tricks as being "backwards". In the 5-0 and noseslide examples, you're still popping off the front of your board, but you classify it as nose or tail based on if it's nollie or fakie.
There are caveats though such as "fakie crook" where if you kept the rule it should be "fakie suski", which no one says.
There's a million arbitrary and nonsensical rules in skateboarding which is part of the reason to love it, especially for something that "has no rules".
And remember, never carry your board by your truck :)
comment 5y ago · link · parent
comment 5y ago · link · parent
Your definition leaves out varial heels and inward heels.
Edit: On second thought I'm still not sure, I saw this in the paper, and I'm guessing they're classifying both direction shuvs as the same, and kick/heelflip as the same
Below we list these four tricks with their corresponding residue class in Z/4Z.
0 ↔ Ollie
1 ↔ 180 Shove-it
2 ↔ 360 Shove-it
3 ↔ 540 Shove-it
Another interesting choice of representatives is given by a combination of the shove-it and the kickflip.
0 ↔ Ollie
1 ↔ 180 Shove-it
2 ↔ Kickflip
3 ↔ Varial Kickflip
comment 5y ago · link · parent
I've only read one Toni Morrison book, Song of Solomon, but that was one of my favorite reads of this year.
If you haven't read Frankenstein or Dracula then I would highly recommend them. I personally enjoyed Frankenstein much more than I thought I would.
Norse Mythology and Neverwhere by Neil Gaiman are also fun reads.
If you want some non-fiction, Into Thin Air by Jon Krakauer is a very engaging read.
comment 5y ago · link · parent
FWIW this is a side project I _want_ to work on, I'm not trying to make money on it, purely a passion project. So I'm not feeling pressured to work on it, I'm just trying to keep the momentum going and I found that drinking will stop that momentum.
I go through waves of video games -> projects -> reading, it's always fluctuating.
comment 5y ago · link · parent
This is one of my biggest motivations for reducing my drinking during the week. Even having just one or two beers after work, the probability that I read or work on a side project drops close to 0.
comment 5y ago · link · parent
I'm not suggesting that the vaccines could do the same, but it's not that big of a leap to wonder if the virus can retranspose, then the vaccine could as well.
Also I'm aware it's a preprint and not fully peer-reviewed yet, interesting nonetheless.
comment 5y ago · link · parent
Whenever I used to complain to my dad about how much I disagreed with 'religion' and churches, he always mentioned how 'religion' came from man, and since man is flawed it will follow.
It helps to shift one's focus on these principles of living rather than the establishments.