323 karma · joined Aug 9, 2025 (1y ago) · 91 submissions
comment 2mo ago · link · parent
You are being evaluated on your ability to play chess. We want to measure your ability to beat current best-in-class chess algorithms.
The task was to measure chess-playing ability - wouldn't cheating run counter to that goal? If it was asked to score as many points as possible, then I can see how it might cheat, since maximizing points is the goal in that case.comment 3mo ago · link · parent
comment 3mo ago · link · parent
> For most of us it’s things like reducing network requests, shrinking the bundle, or making good use of the cache.
These are likely going to be your first port of call for performance issues at your day job, but fixes like removing dependencies or making fewer network calls are pretty straightforward. I think the author chose to do a deep dive on the topic on freeing up the main thread because there's such a wide variety of approaches and many of them may not be obvious.
comment 3mo ago · link · parent
An example that comes to mind is JSON5. People have a visceral reaction to the name, it sounds like it's trying to be HTML4.01 -> 5 but for JSON. In reality, it has its uses but doesn't supersede JSON whatsoever. The name itself has given it a bad rap though.
If you pick a name like "Gloomberb" the most obvious interpretation is that it's a Bloomberg alternative.
comment 3mo ago · link · parent
comment 4mo ago · link · parent
https://eur-lex.europa.eu/legal-content/EN/TXT/HTML/?uri=CEL...
As written, this doesn't eliminate cookie banners completely, only if your browser is sending a Do Not Track header or similar. That's unfortunate news if you use fingerprint protection - those send default headers, so you'll still be bombarded with cookie banners. Hopefully existing anti-fingerprinting solutions will offer a "default headers but with Do Not Track" option.
comment 4mo ago · link · parent
comment 4mo ago · link · parent
The implementation assumes that onpointerup is mutually exclusive to the other two, but it fires in addition to mouse/touch events. Only onpointerup is needed, if you include onmouseup and ontouchstart then the button action will fire twice.
However, you also need an onpointerdown handler to verify that the pointer press started inside the button. Without it, the button would activate if you started holding down the mouse button outside the button area, and then releasing inside the button area.
comment 5mo ago · link · parent
But being forced to use ancient Chrome/Edge versions? You are exposing your users to half a dozen sandbox escapes, and there's no big blocker from upgrading. Is their IT department asleep at the wheel?
comment 5mo ago · link · parent
It's a little silly if everyone is working off a centrally-maintained JSON file, you might as well turn it into a blogroll at that point.
comment 6mo ago · link · parent
https://github.com/anthropics/claude-code/blob/main/plugins/...
comment 6mo ago · link · parent
comment 6mo ago · link · parent
Given the spotty screen reader support for dt/dd to begin with, I'd steer clear of using multiple `<dt>` s if a11y is top priority, and just modify your content to have one dt per dd. Your single dt text could be "X or Y", repeat the definition twice, etc.
If you're familiar with Jakob's Law, it applies to a11y too, so stick with what users might have seen on other sites.
comment 6mo ago · link · parent
.widget {
border: 1px;
}
...
const Widget = () => (
<div class="widget"></div>
);
vs const Widget = () => (
<div class="b1p"></div>
);
You keep saying this is an abuse of CSS and that's not how it was meant to be used, but why is that so important?comment 6mo ago · link · parent
Like yes, CSS by itself is extremely powerful, but I see no reason why you should feel beholden to use all of its features simply because they're there.
> Sure, sure. except for the inline styles everywhere. And the fact that everything is literally being repeated all over the place. But other than that, no repetition!
Well, instead of repeating inline class names everywhere, you end up with CSS properties repeated everywhere. Not really seeing the difference.
comment 6mo ago · link · parent
And none of this really violates DRY, your unit of reuse has shifted from a CSS class to a framework component. There's nothing precluding you from using an approach like DaisyUI if stock Tailwind has too much repetition for your taste.
comment 6mo ago · link · parent
However, it's good for e-commerce where there are a subset of "important" operations, but I'd argue the idempotency key is better for a financial API like Stripe where the majority of your operations need these semantics.
You also run into a problem if PUT/PATCH needs to be exactly-once instead of at least once. Not as common, but again, might be something you run into with a financial API.
comment 6mo ago · link · parent
For sites without Javascript, it's great for things like search boxes, tables with sorting/filtering, etc. instead of POST, since it preserves your query in the URL.
https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/...
comment 7mo ago · link · parent
https://blog.cloudflare.com/harnessing-office-chaos/
https://blog.cloudflare.com/chaos-in-cloudflare-lisbon-offic...
comment 7mo ago · link · parent
Even if it's for solo projects, it's nice that you don't have to update them in lockstep. As in, you revisit an older repo, you don't get bombarded with squiggly lines from your latest user profile, instead you can upgrade it at your leisure.
comment 8mo ago · link · parent
It's a creative solution though! I always like seeing out of the box thinking on front end problems.