Better HN
topnewbestaskshowjobs
Log inSign up

pverheggen

323 karma · joined Aug 9, 2025 (1y ago) · 91 submissions

Submissions

comment 2mo ago · link · parent

There's an important nuance in the prompt:

  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 2mo ago · link · parent

2% is just an example figure, the actual rate varies

comment 3mo ago · link · parent

All good points. Perhaps rather than saying the fixes are straightforward, I should have said it's a straightforward concept to understand. If your app takes forever to load because of a huge bundle, you need to figure out how to make the bundle smaller, somehow. (How exactly to do that is where it gets complicated, like you say.)

comment 3mo ago · link · parent

The article acknowledges this in the very first paragraph:

> 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

Well yes, but a lot of people immediately jump to conclusions based on name alone, it's human nature. Definitely something to consider when you're picking a name for a project.

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

These types of projects can have a happy ending, but only if the product is popular enough and the plugins are essential to the core functionality. Plugins usually die off because the sole maintainer loses interest, but popularity and necessary can bring new maintainers to carry the torch.

comment 4mo ago · link · parent

Pressure cookers do reduce the cook time of some dishes dramatically, but the flavors don't meld as much compared with slow cooking. If you do a 30-minute recipe like this, it's probably worth letting the soup sit another 20-30 minutes in warming mode before serving.

comment 4mo ago · link · parent

I have zero experience with formal verification, just speculating here - but could it be because of the network effects?

More users on your preferred tool means a more comprehensive database of existing proofs, and that makes writing new proofs easier, right?

comment 4mo ago · link · parent

Here's the full text of the bill (Articles 88a and 88b):

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

There's been an explosion of vibe-coded scrapers that behave poorly and ignore robots.txt. Presumably OP disallowed crawling of the search endpoint for the reason stated (that crawling it would result in endless permutations of search filters.)

comment 4mo ago · link · parent

Different browsers handle scrolling differently, and people use a myriad of different "pointer" input devices, there's too many permutations to handle correctly. It's for similar reasons why building native inputs from scratch are fraught with peril (see this item from a few days ago)

https://news.ycombinator.com/item?id=48930136

comment 4mo ago · link · parent

Great article! I spot a few bugs with event handling, but in some ways that adds to the premise.

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

I get that some companies mandate IE11, they may have IE-first internal sites, custom browser plugins, MDM configs - actual systems that would need to be updated. And MS still supports it and releases security patches for it.

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

A webring is a circular doubly linked list - to insert a new site, you only need two existing sites to update their links. It's decentralized and works with any tech stack, including editing a static HTML file.

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 5mo ago · link · parent

lol, that's great...the "vulnerability" isn't even in turso itself, it's a helper method inside a unit test.

comment 6mo ago · link · parent

As a general rule, I'd give the Markdown a read for any skills/commands you might find useful, it'll give you a good idea of the specifics it adds.

https://github.com/anthropics/claude-code/blob/main/plugins/...

comment 6mo ago · link · parent

Agreed. Every time this article makes the rounds, people get hung up on the syntax, and not the performance considerations discussed towards the end. Nystrom wrote a whole book on interpreters, and his main criticism here is the big mess of chained closures this makes at runtime, compared with pausing/resuming green threads.

comment 6mo ago · link · parent

I pulled up some of those spec's examples in Chrome and viewed the accessibility tree, and weirdly it assigns <dt> an implicit role of `term`, even though the spec says that <dt> should be `listitem` and <dfn> should be `term`. I didn't check FF or Safari but I would not be surprised if they did something different.

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

Yes, that's exactly what I'm saying. You don't end up needing a semantic class like .widget since you likely already have a Widget component in your codebase. Essentially:

  .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

There are a bunch of differences between Figma styles and CSS styles that prevent you from creating a 1:1 mapping: typography inheritance, spacing rules, and variant specificity to name a few.

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

Sure, but "total ignorance of how CSS is made to work" is also a straw man.

comment 6mo ago · link · parent

Tailwind, JS-in-CSS, and the like have become popular because they work well with the modern corporate UX workflow. A Figma component has a certain set of styles, you apply those same styles to the corresponding React component.

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

I really like this approach, and am going to keep it in my back pocket.

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

Not entirely arbitrary - forms that use the GET method instead of POST will append form values as query params.

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

Yes, they also have wave machines, pendulums, and mobiles :)

https://blog.cloudflare.com/harnessing-office-chaos/

https://blog.cloudflare.com/chaos-in-cloudflare-lisbon-offic...

comment 7mo ago · link · parent

If you count basic calculus as high school level, TI89's can do symbolic integration. They're usually banned on tests for that exact reason tho.

comment 7mo ago · link · parent

I don't like that it upgrades to ST4 without telling you, but there's a simple workaround if you want to continue using your ST3 license. Download the latest stable build of ST3 from their website:

https://www.sublimetext.com/3

And then add

  “update_check”: false
to your user settings.

comment 7mo ago · link · parent

The standard approach these days is to have all of those declared in a config file somewhere in your project. That way, other contributors (and the CI) can lint/format consistently.

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 7mo ago · link · parent

This rings true to me as someone who's worked at a few large corps like this. A price hike does not change things when there is a mandate to use MS products over other vendors.

comment 8mo ago · link · parent

FYI, useLayoutEffect gets you what you're looking for. Since it fires before repaint, you can take measurements and modify the DOM without the user seeing any layout shift.

It's a creative solution though! I always like seeing out of the box thinking on front end problems.

1234