@mattb@hachyderm.io avatar

mattb

@mattb@hachyderm.io

Computers, cycling, active travel, random brain farts.

This profile is from a federated server and may be incomplete. Browse more on the original instance.

mattb, to golang
@mattb@hachyderm.io avatar

The standard error handling idiom in is error prone and ugly. You can mitigate the former with a linter. I haven't found a good way to mitigate the latter, yet.

It becomes a problem when you've got a sequence of tasks, each of which must shortcut if they error.

err = foo()
if err != nil {
return err
}
err = bar()
if err != nil {
return err
}
...

It makes the real code flow hard to see. Fighting an urge to write a map over a slice of closures. Wouldn't be much better anyway.

mattb, to golang
@mattb@hachyderm.io avatar

folks, can anybody tell me why this doesn't do what I expect: https://go.dev/play/p/VQB02JKAaNG

tl;dr errors.Is(MyError{}, MyError{}) returns false 🤔

mattb, to random
@mattb@hachyderm.io avatar

I'm not (at least not yet) persuaded by the argument that the output of an LLM is a derivative of all the material it was trained on. The problem with the argument is that it also applies to me: if I see some cool code you wrote, you bet I'm going to make a mental note of it. The trip hazards here are patents and non-free licenses, but they also apply equally to people.

There are other problems with LLMs, but I'm not convinced by that one specifically.

mattb, to random
@mattb@hachyderm.io avatar

I just ordered a beer at my seat on this train, and the lady has gone again without asking for any money. I'm expecting to pay for the beer? Curious to see how this pans out.

mattb, to random
@mattb@hachyderm.io avatar

I've got 24 hours in Paris in July with my 14 year old son. We've done the Eiffel Tower, Montmartre, Sacre-Coeur, and the Arc de Triomphe before. We didn't do the Louvre last time, so we'll book tickets to take selfies with the Mona Lisa and the Venus de Milo (total expected visit time <1hr if we drag it out or the queues are bad).

What would you do?

mattb, to random
@mattb@hachyderm.io avatar

Who the fuck targets a public hospital with a ransomware attack?

Firstly, as the British Library demonstrated, public institutions are NEVER going to pay.

Secondly, holy FUCK those people! In addition to having no prospects of ever getting a pay out, I hope we throw the full weight of our intelligence services behind ruining the rest of their worthless lives.

mattb, to random
@mattb@hachyderm.io avatar

Brno to Vienna. Not too shabby 👌

mattb, to random
@mattb@hachyderm.io avatar

Ironically, it looks like all the British people on this flight to London are going to miss it due to border exit delays in Germany. EU and even US citizens can use the automated barriers, which are working just fine with no queues.

mattb, to random
@mattb@hachyderm.io avatar

Just seen the Bairstow dismissal. That's not cricket!

mattb, to cycling
@mattb@hachyderm.io avatar

Somebody is doing as experienced by normal people: https://youtu.be/qwTWt4M11-Y

I'm here for this.

mattb, to random
@mattb@hachyderm.io avatar

Once more: a pox on all command line utilities which send their help text to stderr instead of stdout.

mattb, to random
@mattb@hachyderm.io avatar

Good morning, Fediverse!

mattb, to random
@mattb@hachyderm.io avatar

One of the few good things to happen during the pandemic: they opened our town's main shopping street to humans, and it was wonderful.

Then they closed it again, of course.

mattb, to RedHat
@mattb@hachyderm.io avatar

The whole brouhaha with sources only being provided to folks entitled to the binaries is fine: that's entirely compatible with the GPL, and the other licenses are a free-for-all.

However, I keep seeing the suggestion that people with the RHEL source can't redistribute it due to a license agreement. That would not be compatible with my understanding of the GPL, and I haven't seen any explanation of how it could even be possible. Can anybody confirm it with specifics? Is it just FUD?

mattb, to Cats
@mattb@hachyderm.io avatar

I just discovered what Harry was making such a fuss about at 5am this morning: by discovering the pile of sloppy cat shit under my desk with my bare foot. The cats really don't like using the litter tray 🙄

mattb, to random
@mattb@hachyderm.io avatar

Been rewatching the West Wing. Seasons 1-4 are excellent. Season 5 is pretty good, season 6 is ok, season 7 kinda descended into soap opera.

mattb, to random
@mattb@hachyderm.io avatar

These crisps aren't salt and vinegar. Why would you do that?

mattb, to random
@mattb@hachyderm.io avatar

I'm a sucker for a good beat and a euphoric cord progression.

mattb, to homeassistant
@mattb@hachyderm.io avatar

Trying to work out how to get speech in to but my RTFM-fu is too weak. No external mics, just want to play with it through the app. Where do I find a Speech-to-text integration?

mattb, to cycling
@mattb@hachyderm.io avatar

Did I fix it, or ruin a really expensive tyre?

mattb, to random
@mattb@hachyderm.io avatar

I miss having an EU passport ☹️

mattb, to random
@mattb@hachyderm.io avatar

I am offended 🇬🇧

mattb, to random
@mattb@hachyderm.io avatar

What was the Mastodon patch panic about in the end? I'm assuming a juicy vulnerability, but interested to know the details.

mattb, to random
@mattb@hachyderm.io avatar

I watch a lot of YouTube. So much, in fact, that I feel I get my money's worth from YouTube Premium.

However, YouTube content these days is increasingly sponsored. This is annoying and I invariably skip through it, but I wonder what the revenue split of one of these videos is between sponsor and ad revenue. I wonder if it would be financially viable to post sponsored videos on PeerTube without a major business model change.

Perhaps @geerlingguy has given it some thought?

mattb, to random
@mattb@hachyderm.io avatar

How many is one oodle? Is that imperial or metric oodles?

  • All
  • Subscribed
  • Moderated
  • Favorites
  • provamag3
  • InstantRegret
  • mdbf
  • ethstaker
  • magazineikmin
  • GTA5RPClips
  • rosin
  • thenastyranch
  • Youngstown
  • osvaldo12
  • slotface
  • khanakhh
  • kavyap
  • DreamBathrooms
  • JUstTest
  • Durango
  • everett
  • cisconetworking
  • Leos
  • normalnudes
  • cubers
  • modclub
  • ngwrru68w68
  • tacticalgear
  • megavids
  • anitta
  • tester
  • lostlight
  • All magazines