News for hackers. Stuff that matters.

maxwellburson

Re:Monsters of the Road: What Should the UK Do About SUVs? on Sunday November 05, 2023 @05:29AM (#38149881)
> 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

> 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.

Re:The Mom Test – How to talk to customers on Monday September 27, 2021 @04:00AM (#28668211)
Why?
Re:Comparisons in C++20 on Sunday July 28, 2019 @11:15PM (#20551262)
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.