zeorin

Joined 8 years ago

Karma
38
Submissions
20
Member since
Jul 31
[ my public key: https://keybase.io/zeorin; my proof: https://keybase.io/zeorin/sigs/aP1nVX_zolMes1Ykc6NN4KLa1yItsueasC7bdwFtI5Y ] https://keyoxide.org/[email protected]
View on Hacker News

Recent submissions

Comment · 1 year ago
React is easy, once you understand why

{} !== {}

and that it uses reference equality as a proxy for value equality.

This is why the absolute simplest thing to do is to just memoize all the things (see https://attardi.org/why-we-memo-all-the-things/ for a deeper dive into this approach).

I know that the conventional wisdom (e.g. https://kentcdodds.com/blog/usememo-and-usecallback) is not to do that, but it's worth noting that Kent doesn't actually bring receipts for his claims, and also the discussion is typically limited to toy examples, not huge applications that have the potential for huge cascading renders when anything changes. In my own profiling of real world applications I have found that memoizing everything is not actually a performance regression. And then also consider the React Compiler, which of course does the same, at an even more fine-grained level than any human could be bothered to consistently do by hand.

Comment · 3 years ago
For me the killer feature of home-manager versus other dotfiles managers is that it also installs any software your dotfiles depend on or assume to be present on the machine.
Comment · 3 years ago
My fix for this is to also remap holding the Enter key to right control.

That way I can use the "control" key on the opposite side of the alpha key, the same way one is meant to do with the shift key when touch typing.

Comment · 4 years ago
> Do you close your eyes walking around town any time you go by a store front, you see a roadside ad, a bench covered in ads, a taxi backseat, public toilets, any sports events and jerseys, TV, newspapers, magazines, radio...

There will be open-source AR projects to block those, too, one day

Comment · 4 years ago
Nix packaging doesn't involve containers.
Comment · 4 years ago
You could use different Firefox profiles for this...
Comment · 4 years ago
If you scroll down to the bottom there's a link to buy the whole book.
Comment · 4 years ago
This does sound great to me. Do you have any way to keep up to date with your progress?
Comment · 4 years ago
Don't give them any ideas
Comment · 4 years ago
Comment · 5 years ago
Comment · 5 years ago

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton