Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
pverheggen
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
7 ms
·
61.
▲
by
pverheggen
1y ago
> Yes, but often you have elements with taborder > 0. You can just as easily apply the same tabindex to a div though. > Only if document order is sane. Usually with modern websites it isn't... Well that's the real problem
62.
▲
by
pverheggen
1y ago
There are well-defined standards for how the role of every element is determined, and according to those standards, adding an onclick handler does not change the role. Screen readers also don't access the DOM directly, there's an
63.
▲
by
pverheggen
1y ago
A good addition to this article is that most buttons should have type="button" on them. By default, buttons are type="submit", which if contained inside a form will submit that form. I'm sure there are some devs who
64.
▲
by
pverheggen
1y ago
Not sure about that, MDN's example shows keydown being attached to an element. https://developer.mozilla.org/en-US/docs/Web/API/Element/key...
65.
▲
by
pverheggen
1y ago
That's the same behavior as a <button> without tabindex, like the author is proposing. It's generally advised not to set tabindex to anything but 0 or -1 and let the document order dictate tab order.
66.
▲
by
pverheggen
1y ago
Why not use annotation instead? const props: ['foo'] = ['foo']
67.
▲
by
pverheggen
1y ago
Maybe not a single browser toggle, but it really should be handled at the browser level. There are browser APIs for opt-ins like your current location, using the camera and microphone - why not one for tracking consent?
68.
▲
by
pverheggen
1y ago
reSID is one of the best simulators, and actually does capture a lot of the quirks of the 6581. Take a look at the source, some of the models are actually based on electrical characteristics (filter.cc and filter.h for example). https:&#x
69.
▲
by
pverheggen
1y ago
Fabricating a custom chip costs several million dollars, which is kind of a non-starter for such a niche product. Is it theoretically possible? Maybe, there are high-res die photographs used for reverse engineering and improving simulator
70.
▲
by
pverheggen
1y ago
I feel like this could work if the selectors are chosen carefully to capture semantic meaning, rather than basing off of something arbitrary like a class name. The agent must have some understanding of the document to be able to perform tho
71.
▲
by
pverheggen
1y ago
Well they did have a valid reason for a rename, .NET 5.0's announcement coincided with discontinuing Mono and Xamarin, and uniting the non-Windows .NET flavors under a single platform. They also planned to iterate more rapidly and add
72.
▲
by
pverheggen
1y ago
Vercel is already heavily involved, take a look at the core team: https://react.dev/community/team This announcement mentions they are separating business and technical governance, I suspect they are trying to limit Ve
73.
▲
by
pverheggen
1y ago
> Figure out what works and keep it, is that so hard? Well, short answer is that it's been in the "figure out what works" phase for many years now. The developer experience has improved a lot over the years, but it's
74.
▲
by
pverheggen
1y ago
That doesn’t apply to Hulu though. It’s been co-owned by various media giants since inception (currently Disney, previously Fox and NBC.) It made sense back when it was launched but is basically redundant with Disney+ at this point. Still p
75.
▲
by
pverheggen
1y ago
The study doesn’t have public access, but here’s a blog with some more details: https://soranews24.com/2025/10/04/research-in-japan-proves-t... What makes this study flawed is that they had pianists performin
76.
▲
by
pverheggen
1y ago
Yeah, most orgs use Figma as the source of truth, so if your designers don’t “design system”, it finds its way into the codebase. Even if they do follow a design system, it tends to evolve over time, and it can be a bumpy road to reach a ma
77.
▲
by
pverheggen
1y ago
I think it’ll still throw a ReferenceError. Initialization is optional, but you still have to initialize before referencing.
78.
▲
by
pverheggen
1y ago
To add to this, useful compression algorithms exploit patterns in the input data. A common pattern to target is repetition, since most files contain lots of repeated byte sequences. The pattern that factorization targets are numbers that
79.
▲
by
pverheggen
1y ago
There is a UK GDPR, it’s the same framework but adopted under UK law: https://ico.org.uk/for-organisations/data-protection-and-the...
80.
▲
by
pverheggen
1y ago
Calling them letters is a little misleading. There’s 6 dots per character, which gets you a total of 64 possible characters, including spaces. 250 is probably counting all the multi-character contractions and abbreviations. These cheat sh
81.
▲
by
pverheggen
1y ago
Probably never. There's a pretty good recent thread on this topic: https://news.ycombinator.com/item?id=44775801
82.
▲
by
pverheggen
1y ago
Technically in React, the reactive callback is still the event handler. It's a two-step process where your event handler is evaluated first, then re-evaluates the component tree which changed as a result of the handler. In your JSFidd
83.
▲
by
pverheggen
1y ago
The best of both worlds would be a different subdomain that serves up the same content but as a conventional site, like how old.reddit.com does it. Then you get to keep the neat gimmick, but have a fallback for users that can’t stand it.
84.
▲
by
pverheggen
1y ago
Not just a stdlib, lack of an SDK as well. Both Deno and Bun have decided to ship with tooling included, which cuts down on dev dependency bloat.
85.
▲
by
pverheggen
1y ago
Worth noting, the prefers-reduced-motion media query is great for this: https://developer.mozilla.org/en-US/docs/Web/CSS/@media/pref...
86.
▲
by
pverheggen
1y ago
> On the other hand, nobody asked Cloudflare to be the unelected leader of the internet. In a way, site owners did, by choosing to use their service.
87.
▲
by
pverheggen
1y ago
FWIW, this is fairly out of date - password grant must not be used and authorization code should be used in place of implicit. I highly recommend anyone dealing with OAuth to read the BCP and not just the spec, especially if you're rol
88.
▲
by
pverheggen
1y ago
Arizona also did stakeouts to try and catch this guy: https://www.nbcnews.com/id/wbna32806142
89.
▲
by
pverheggen
1y ago
We have them in the US too, but it varies widely by jurisdiction because they're regulated at the state level and policed at the local level. Oh and it's not a bill, it goes through the legal system so people have the right to arg
90.
▲
by
pverheggen
1y ago
> There are few things less accessible than web applications depending on bleeding edge javascript that might not get successfully executed. There are few things more accessible than text in an HTML web page on an HTML web site. It'
More ›