HN user

zeorin

38 karma

[ my public key: https://keybase.io/zeorin; my proof: https://keybase.io/zeorin/sigs/aP1nVX_zolMes1Ykc6NN4KLa1yItsueasC7bdwFtI5Y ] https://keyoxide.org/me@xandor.co.za

Posts1
Comments17
View on HN

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.

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.

Vim Foot Pedal 4 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.

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

That's not accurate, at least as far as GDPR is concerned.

Only necessary ones don't need consent, but the bar for "necessary" is high: the software wouldn't be able to function without it and there's no way to implement the software without it. Think: "address" is necessary for "delivery".

Even then you still need consent to store the cookie under most versions of the "Cookie law", which is a complementary but different thing to GDPR.