Recent submissions

Comment · 3 months ago
Comment · 3 months ago
Nice, I had seen that. Ideally it wouldn't be something that sits on my desk. I want to hold it and talk to it and build spacial awareness with it. But fits many of the goals. I'll have to give it a try!
Comment · 3 months ago
PikaCube is a thought experiment "solution" with a website one-shot from claude code. I don't want to make something like it, I want to buy something like it.
Comment · 1 year ago
Comment · 1 year ago
Comment · 2 years ago
Comment · 3 years ago
Comment · 3 years ago
One line of code which is specific in what it catches:

    // Either foo or someError will be defined
    const [foo, someError] = itry(someFn, SomeError);
Instead of nine lines which feel like they are working uphill against the language: dealing with variable scoping issues, deeper nesting, and footguns like forgetting to re-throw.

    let foo;
    try {
      foo = someFn();
    } catch (err) {
      if (err instanceof SomeError) {
        // do something with error
      } else {
        throw err;
      }
    }
    // use foo

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton