HNHacker News
TopNewBestAskShowJobs

maxwellburson

7 karma · joined December 18, 2017

submissionscomments
maxwellburson··on Monsters of the Road: What Should the UK Do About SUVs?
> Two arguments here: 1. SUVs are already taxed on weight indirectly - they consume more fuel which is heavily taxed (50+% in most of Europe). 2. SUVs are already taxed higher because they're more expensive.

Those costs aren’t proportionate. Road wear increases exponentially as weight increases. https://en.wikipedia.org/wiki/Fourth_power_law

> SUVs usually have great visibility because of large windows.

He may be referring to other vehicles visibility. https://en.wikipedia.org/wiki/Criticism_of_SUVs

maxwellburson··on React Docs Beta – rewritten with hooks and interactive examples
> IMO, React really could have benefited from devoted language syntax for this (like Svelte does) to automagically and statically track all the dependencies. But React has an ethos of being "just JavaScript" (even JSX desugars to relatively straightforward React.createElement calls, and you can treat those nodes like regular JS objects, pass them around willy nilly, etc.), so it didn't happen (and instead we have lint rules like ESLint rules-of-hooks that are designed to enforce the invariants that really the programming language should enforce).

You’re looking for solid.js

https://www.solidjs.com/

It’s “just JavaScript” like React, but with automatic dependency tracking. My understanding is that React hooks are the best React can do given backwards compatibility requirements. Reacts beast feature is it’s ecosystem.

maxwellburson··on The Mom Test – How to talk to customers
Why?
maxwellburson··on Comparisons in C++20
While I don't know about this specific case, I do know in some languages, like JavaScript, NaN poisons any operation it is part of. So any operation on it is NaN, and comparisons to it are false.