News for hackers. Stuff that matters.

nosrednehnai

Re:How UI-driven state increases accidental complexity on Wednesday March 25, 2020 @12:56PM (#22686384)
> but what happens when something else in your UI cares about it and has to respond to it?

HTML event-listeners like on-blur, on-focus, on-click, etc. handle this very nicely. I've found that they're frequently disregarded in component libraries, unfortunately.

https://developer.mozilla.org/en-US/docs/Web/API/GlobalEvent...

Re:VW’s $50B Bet on an Electric Hatchback on Wednesday October 23, 2019 @03:38PM (#21338089)
I don't think your tinfoil hat theory is so far-fetched. Like every other car company before Tesla, they've optimized for ICE cars. From their perspective, the ideal scenario would be that the electric car trend dies out as a fad, leaving their core business (ICE cars) unaffected.