FizzyOrange

joined 2 years ago
[–] FizzyOrange 1 points 5 days ago

I've definitely seen "this is more correct, but all the other code does it like this so can you change it?"

I can't say I entirely disagree with it either - usually the "more correct" is not "the existing code doesn't work at all", and keeping it consistent makes it easier to fix all of the code later, because you're only fixing one style instead of two (or more).

[–] FizzyOrange 3 points 6 days ago (2 children)

Ha you only think this is unique to tech because you don't have experience of it in other fields.

[–] FizzyOrange 1 points 6 days ago

I'd settle for detailed short term local rain forecast. It's such a huge application and as far as I can tell (please correct me if I'm wrong!) nobody does it at all well.

  • Often ensembles are only run every 3 or 6 hours, so the predictions are needlessly out of date.
  • The ensembles have a very small number of runs (like less than 10) so you can't get a good estimate of probabilities.
  • Usually you can't get access to the raw data anyway and user facing sites dumb things down to a single number, so e.g. "it's going to drizzle all day" and "it's going to tip it down for half an hour at some point" are presented exactly the same. As are "it's either going to rain loads or not at all" and "it's definitely going to rain a bit".
[–] FizzyOrange 5 points 1 week ago (1 children)

No, they're inherently optional in Git. There's no way to "check in" a git hook. You have to put in your README

Clone the repo and then please run pre-commit install! Oh and whatever you do don't git commit --no-verify!

You definitely need to actually check the lints in CI. It's very easy though, just add pre-commit run -a to your CI script.

[–] FizzyOrange 13 points 1 week ago (1 children)

So... to store encrypted data that only the user can decrypt you don't need any fancy zero knowledge algorithms. Just have the user keep the encryption key.

For authentication you could use one of these algorithms. OPAQUE seems to be popular. I'm not an expert but it seems like it has several neat zero-knowledge style properties.

But probably forget about implementing it without a strong background in cryptography.

[–] FizzyOrange 4 points 1 week ago (3 children)

To check that people ran the pre-commit linters.

Committing itself won’t be possible

That's not how pre-commit hooks work. They're entirely optional and opt-in. You need CI to also run them to ensure people don't forget.

[–] FizzyOrange 0 points 1 week ago

Yeah this is weird. I thought they'd switched to ARM.

[–] FizzyOrange 7 points 1 week ago (5 children)

You need them in CI anyway to check people have actually done that, but yeah you definitely don't need to have CI automatically fix formatting and commit the fixes. That's crazy.

[–] FizzyOrange 2 points 1 week ago* (last edited 1 week ago)

WPRS uses the term rootless like this. I didn't come up with it. But I agree it is not a great term. If you can think of a better one I will happily use it. Parallels calls it "coherence mode", which also isn't great.

Actually Xprs uses "seamless mode" which is probably better.

[–] FizzyOrange 1 points 1 week ago

Yeah it's more complex. I don't think there's any more overhead though, and there's no reason it will be slow.

Can’t you just run it locally?

No, unfortunately not.

[–] FizzyOrange 1 points 1 week ago (1 children)

Isn't it just basic X forwarding?

[–] FizzyOrange 2 points 1 week ago

Yeah true. It definitely has downsides. But so does begging corporations for money...

view more: ‹ prev next ›