Better HN
topnewbestaskshowjobs
Log inSign up

neallindsay

834 karma · joined Feb 20, 2014 (12y ago) · 241 submissions

const lockify = f => {

  let lock = Promise.resolve()

  return (...args) => {

    const result = lock.then(() => f(...args))

    lock = result.catch(() => {})

    return result.then(v => v)

  }

}
Submissions

comment 1mo ago · link · parent

The part where he's testing the blade motion and you see the bandages on his fingers I found a bit… disturbing.

comment 1mo ago · link · parent

I searched for “under construction” and my computer exploded.

comment 3mo ago · link · parent

So a Surface Pro is a laptop then. Does a SteamDeck become a laptop if you install Windows on it?

comment 3mo ago · link · parent

I also raised an eyebrow at "the vast majority of laptops are only sold with a specific proprietary operating system: Microsoft Windows", but after looking at some estimates it seems legit. Probably only about 1 in 10 laptops is a Mac. Software developers really just live in a different world than normal people.

It got me thinking though: what is a laptop? People probably count Chromebooks, and that seems fair. Is a SteamDeck a laptop? Is an iPad with a keyboard case a laptop? Is a Microsoft Surface Pro a laptop when it has its keyboard attached?

comment 6mo ago · link · parent

You have to participate in order to get access to most iPhone users.

comment 9mo ago · link · parent

If someone is charged with and found innocent of a crime, you can't just remove that record. If someone else later finds an account of them being accused, they need a way to credibly assert that they were found innocent. Alternately if they are convicted and served their sentence, they might need to prove that in the future.

Sometimes people are unfairly ostracized for their past, but I think a policy of deleting records will do more harm than good.

comment 11mo ago · link · parent

Isn't that what I said?

comment 11mo ago · link · parent

1.7x more is not the same as 1.7x as many.

comment 11mo ago · link · parent

Some TypeScript features are only available through JSDoc. The one I encounter most often is `@deprecated`.

comment 11mo ago · link · parent

There's a Kingdom Hearts joke in there somewhere, but I don't know enough of the lore to make it.

comment 1y ago · link · parent

We're all suffering from the curse of dimensionality.

comment 1y ago · link · parent

In-band signaling can never be secure. Doesn't anyone remember the Captain Crunch whistle?

comment 1y ago · link · parent

The search deals were already not exclusive. The real impact will be the other businesses (especially GenAI) where Google will be barred from having exclusivity clauses in its contracts.

-update- CNBC has fixed their headline.

comment 1y ago · link · parent

I don't think that blueflow is being obtuse at all. If you assert that genes have an intended way of working, then the questions

> How do we know how things are intended to work? (Intended by whom?)

are very salient. Your reply talking about

> …a specific receptor in the body is not working properly.

just raises the same question again. What does it mean for something in our biology to be working "properly"? Who is deciding what is "proper"?

comment 1y ago · link · parent

> …as intended.

Genes and biology in general do not have "intended" purposes.

comment 1y ago · link · parent

Unicode support in Ruby has been great since the beginning.

comment 1y ago · link · parent

Ruby has been extremely slow and deliberate in rolling out frozen string literals. They added a magic comment to opt in to them on a per-file basis all the way back in Ruby 2.3—almost a decade ago.

https://www.ruby-lang.org/en/news/2015/12/25/ruby-2-3-0-rele...

Most linting setups I've seen since then have required this line. I don’t expect many libraries to run afoul of this, and this warning setting will make finding them easy and safe. This will be nothing like the headache Python users faced transitioning to 3.

comment 1y ago · link · parent

I guess "esoteric" is in the eye of the beholder, but Promises seem a lot easier than the old callback style we used to use for asynchronous operations.

comment 1y ago · link · parent

Promises in JS make this stuff much easier (at least to my mind):

const lockify = f => {

  let lock = Promise.resolve()

  return (...args) => {

    const result = lock.then(() => f(...args))

    lock = result.catch(() => {})

    return result.then(v => v)

  }

}

comment 1y ago · link · parent

By following the work of authors that you trust and getting recommendations from people you trust, you can reduce your need for recommendations from machines and companies. Then you won't need to rely on clickbait images and headlines to decide if you want to read or watch something.

This requires effort, so it's not free, but I think it's a better way to engage with media.

comment 1y ago · link · parent

I guess they expect you to set all your repos to public before applying for a visa now. Maybe your Venmo history as well?

comment 1y ago · link · parent

The xenophobes making these decisions don't care if they create problems for US citizens traveling abroad.

comment 1y ago · link · parent

The picture at the top of the article seems to be a bad (AI-generated, I assume) illustration of the Gartner Hype cycle. There are supposed to be five stages, but the text at the bottom doesn't line up with the graph because it is missing the "peak of inflated expectations" while the graph seems to be missing the "plateau (of) productivity" stage.

comment 1y ago · link · parent

Computers keep getting better at acting like humans, but humans don't get any more obviously human.

comment 1y ago · link · parent

I was looking at quarterly revenue numbers—it seems like a dollar value to me.

comment 1y ago · link · parent

Apple should abandon the console model for iPhones (and iPads, etc.). It's corrosive. By my back-of-the napkin math (subtracting an estimate of Google's quarterly search payments from Apple's stated "services" revenue and comparing to iPhone revenue), Apple would make the same amount of money by just charging me an extra 25% when I bought a phone. I would gladly pay that up-front instead of indirectly when I buy apps.

comment 1y ago · link · parent

Despite all the data about climate change, the thing that is actually shifting us away from fossil fuels is that solar panels are cheap.

comment 1y ago · link · parent

If they didn't prevent selling derivative game engines, someone could fork it and add a valuable feature that was only available in the paid fork. This could split the community.
12345
9