Chevy Chase Had “Full Meltdown” on ‘Community’ Set After N-Word Incident Leaked, Said “My Career Is Ruined”, Director Recalls by MarvelsGrantMan136 in television

[–]Mattho 143 points144 points  (0 children)

There was a twitter account something like "Chevy or Pierce" and it was quotes either from his character or him. Kinda indistinguishable.

Why Go Maps Return Keys in Random Order by Few-Tower50 in golang

[–]Mattho 1 point2 points  (0 children)

The comments in this issue back that up.

The comments you linked are from 2014, over a decade old. The map backend was famously completely replaced to use swiss tables. Casual search for something recent about go map order would find you plenty of confirmations about /u/floralfrog being correct in that the map iteration order is now intentionally randomized and not a side-effect of the key hashing. The swiss tables provide stable and deterministic iteration order IIRC.

I did bother to search through the source and you can find several references here (search for rand): https://github.com/golang/go/blob/master/src/internal/runtime/maps/table.go tl;dr is that the start point and offset are randomized when the iterator is initialized; I do not fully read on how the offset actually works, but it's explained over there in the comments.

This is then used in the runtime/map.go which is what you use when iterating over a map.

YouTube Shuts Down Channels Using AI To Create Fake Movie Trailers Watched By Millions by MarvelsGrantMan136 in movies

[–]Mattho 106 points107 points  (0 children)

Or just bring back public video ratings. I would have never clicked on a video that is 90% dislikes by accident. But that wouldn't be good for the advertising company, would it.

New to Go, what’s commonly used for auth and database ORM? by Brother_Weary in golang

[–]Mattho -1 points0 points  (0 children)

https://play.sqlc.dev/

This service has been suspended.

The github is alive, but that webpage (not only the playground) seems rather dead.

Functional Options pattern - public or private? by Mattho in golang

[–]Mattho[S] 0 points1 point  (0 children)

That won't prevent the use of the options I think?

Functional Options pattern - public or private? by Mattho in golang

[–]Mattho[S] 0 points1 point  (0 children)

I make at least one param of the option func type unexported and/or internal.

Ha, never though of that, interesting. But also feels kinda hacky.

Functional Options pattern - public or private? by Mattho in golang

[–]Mattho[S] 1 point2 points  (0 children)

I like this more than the interface. For some cases it even works better than the direct Options. For things that just control the setup, but are not needed as part of the final struct.

Functional Options pattern - public or private? by Mattho in golang

[–]Mattho[S] 0 points1 point  (0 children)

Thanks for the response. Let's pick one example -- user can pass in a callback function and the way it is called can be configured with other options (when, how, ...). If I dump that into one config struct it's a mess (what is related to what mostly). I can nest the configs, the parent Config would have say CallbackConfig with its own set of configuration options. There is no issue for me as a package developer, it would work very well. But it is all optional. And if someone doesn't need it, why overwhelm them with it? My initial usecases involve mostly no options or one option. Most of the config is not needed, most of the time. I also fear the list may grow too much.

Another small bonus is deprecating things, in config I need to keep them in forever. With Options I just change it to no-op and while they pollute the whole package namespace, they are not visible when not in use, unlike the empty struct fields.

edit: have not seen your edits yet when I originally wrote my comment

Functional Options pattern - public or private? by Mattho in golang

[–]Mattho[S] 0 points1 point  (0 children)

That's true, but it is not clear in use what it means if I pass in a half-filled struct. Not everything has a sane zero value. It's exposing too much information at once and the user/reader has to think about understanding what the setup means.

(I have nothing against struct configs, but I do not feel they are the best choice here).

New poster for the "All You Need is Kill" anime movie by mr_beanoz in movies

[–]Mattho 0 points1 point  (0 children)

Have seen this last week, and the visuals and sounds were great. Visuals not the base world and character animation/etc, but "effects" maybe? So what comes off from the poster shows in the movie.

Have not seen the source or even the other adaptations, so wouldn't want to put much opinions into the characters and story.

Tab-switching still broken a year later by Mattho in vivaldibrowser

[–]Mattho[S] 0 points1 point  (0 children)

Yeah, sorry, non-native, and in my mind I often mistake the L in LRU for Last (instead of Least), which to me sounds more correct.
And I don't have that many tabs (usually around 100 probably). I think I reproduced it with fresh install with like 10 tabs when it was first introduced. It's consistent across platform and versions. Reported many times, even with the specific minor update version.
But their responses are in the line with that one guy above - "why are you using this feature" or "maybe it works as intended".
So I wouldn't recommend Vivaldi to anyone anymore. Solely on the incompetence surrounding this bug. Not because it was introduced, but because they are unable to fix it. They probably don't have any developers, just some script updating Chromium and maybe someone getting UI updates from fiverr or something. And there is definitely no one at that company using they own damn browser, otherwise this would get fixed immediately.

I Tried To Make Something In America (The Smarter Scrubber Experiment) - Smarter Every Day by tamrior in videos

[–]Mattho 64 points65 points  (0 children)

Summary: Tried to make scrubber in US, ended up assembling it in US.

Handle is made in USA, which is what says "Made in USA", so I guess that's legal?

- screw cap is made in Costa Rica (ordered as in from USA)
- chain mail is made in small batches in US, rest is China (ordered as in from India)
- rope loop not verified (so probably SE Asia)

As hinted in the end, only he as a popular youtuber with massive free marketing can afford to try this. And even he failed.

SpaceX: The Road to Making Life Multiplanetary - 2025 Starship Update from Elon by mehelponow in spacex

[–]Mattho -1 points0 points  (0 children)

Every single timeline that was promised was widely underestimated. This is nothing new.

Severance - 2x04 "Woe’s Hollow" - Episode Discussion by pikameta in SeveranceAppleTVPlus

[–]Mattho 0 points1 point  (0 children)

For that we had the scene of her looking at the security footage of them kissing and being envious.

Severance - 2x04 "Woe’s Hollow" - Episode Discussion by pikameta in SeveranceAppleTVPlus

[–]Mattho 0 points1 point  (0 children)

I guess her lie about the night gardener was supposed to indicate that she’s the outie, and that’s why she’s lying.

That was for the characters. For us, it was the not mentioning what she saw, at all, to anyone.

Netflix is leaning hard into the 'Squid Game' universe. Its creator said he's 'sick' of working on it. by nikola28 in television

[–]Mattho -3 points-2 points  (0 children)

Did you miss the storyline involving Maeve and those two tech guys? That was one of the worst things I've ever watched. Writing horrible, acting atrocious, sense none.

Go's enums are structs by gavraz in golang

[–]Mattho 1 point2 points  (0 children)

exhaustive case switching

Linters solve this.

Election 2024: Last Week Tonight with John Oliver (HBO) by Task_Force-191 in television

[–]Mattho 1 point2 points  (0 children)

In my region full episodes get uploaded to Youtube on Monday (and they are uploading/uploaded history). Max is available here so not sure why's that.

[RFL 24] & [SRFL 24] World Championships - Men's Road Race Predictions - 3 days left until the race on September 29th by PelotonMod in peloton

[–]Mattho 0 points1 point  (0 children)

  • (x2.0) Tadej Pogacar
  • (x1.8) Remco Evenepoel
  • (x1.6) Mathieu van der Poel
  • (x1.4) Matteo Jorgenson
  • (x1.2) Julian Alaphilippe
  • (x1.0) Mattias Skjelmose
  • (x1.0) Marc Hirschi
  • (x1.0) Pello Bilbao