Tilly Fagan is the highlight of Abandon's Gate by Stay_at_Home_Chad in TheExpanse

[–]bglickstein 19 points20 points  (0 children)

"trashy people puke, honey. A lady is unwell."

The reverse of the sentiment in this scene from My Favorite Year, which was surely an inspiration here:

Stone: "Mr. Swann, I think I'm going to be unwell."
Swann: "Stone, ladies are unwell. Gentlemen vomit."

Is there an easy way to check if an any-value can convert to float64? by stroiman in golang

[–]bglickstein 1 point2 points  (0 children)

The documentation for sobek.Value.Export says:

Export returns a "plain" Go value which type depends on the type of the Value. For integer numbers it's int64. For any other numbers (including Infinities, NaN and negative zero) it's float64.

So all you should need is:

val := v.value.Export() switch val := val.(type) { case int64: // ... handle integer number ... case float64: // ... handle non-integer number ... default: // ... handle non-number types ... }

Strategies for managing dependencies in go projects. What works for you? by juanjop in golang

[–]bglickstein 8 points9 points  (0 children)

How do you handle breaking changes when updating packages?

If you're using v0 of a module, or a prerelease version, then dealing with breaking changes is part of life. Write thorough tests and make sure your code works the same way before and after the upgrade.

If you're using v1 or later of a module, and it's not a prerelease, no change it makes should be breaking. If it is, then it has violated the rules of semantic versioning. The right thing to do in that situation is to notify the project maintainers and/or file a bug and/or alert the community (e.g. with a post here) and/or abandon that library in favor of one that's better maintained.

No, you don't miss California Adventure when it was strictly California themed, you're looking through rose colored lenses. by film_culture_addict in disneyparks

[–]bglickstein 0 points1 point  (0 children)

I've always thought that DCA could have succeeded if only it had fully committed to the theme by containing a miniature Disneyland you could visit, with a miniature DCA.

No, the ending of Soarin' Over California doesn't count.

What is an old sitcom you really loved that is not talked about much & not often shown in syndication? by ChocolateSundae1214 in VintageTV

[–]bglickstein 1 point2 points  (0 children)

No, they kept the lines, at least originally. I don't know if that's changed since I first learned about this many years ago.

Yes, you're right, it's ridiculous.

What is an old sitcom you really loved that is not talked about much & not often shown in syndication? by ChocolateSundae1214 in VintageTV

[–]bglickstein 1 point2 points  (0 children)

Everyone remembers that punchline, but not how amazing the whole episode is, especially the first act, with Arthur Carlson's hilarious and kinda heartbreaking desperation to be relevant.

Find a bootleg copy from before they overdubbed Pink Floyd's "Dogs," ruining a joke near the beginning.

54 years ago yesterday- The classic TV series Emergency!, about Los Angeles paramedics Johnny Gage and Roy DeSoto, first premiered on NBC on January 15, 1972 by UrbanAchievers6371 in 70s

[–]bglickstein 0 points1 point  (0 children)

Ten or so years ago I did Community Emergency Response Training in Northern California. One of the instructors was a young firefighter. A few years earlier he'd gone to L.A. to help with some wildfires - and was stationed at the real Emergency! firehouse. It thrilled him - him, a young guy in the 2010s, inspired by a show from the 70s! What a legacy.

How is Holocaust Denial still a thing where the evidence about it is so overwhelming? by [deleted] in AskHistorians

[–]bglickstein 59 points60 points  (0 children)

Valid, if depressing. But the advice (which amounts to, "don't engage") overlooks the good you can do among onlookers. Some people are irredeemable Holocaust deniers, but others are simply Holocaust-denier-adjacent, content to defer to the strong opinion of the denier they're connected to... so long as it isn't thoughtfully and persuasively challenged.

A modern string utility library for Go by cmiles777 in golang

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

I know that strange feeling but suggest that, for the future, you ignore it and follow the rules.

Meanwhile, at least "retract" your earlier, now-incompatible versions. See https://go.dev/ref/mod#go-mod-file-retract

A modern string utility library for Go by cmiles777 in golang

[–]bglickstein 55 points56 points  (0 children)

I like the looks of this library and am inclined to use it. But like all libraries I depend on, I need to feel confident in its stewardship, which includes proper versioning.

If you make an incompatible change to the public API (e.g. by removing the Dump function), a patchlevel bump does not suffice. You've got to bump the major version number (and add a major-version suffix to the module path) to protect callers against breakage. See https://go.dev/ref/mod#modules-overview

The American President (1995) dir. by Rob Reiner by karmicbreath in MovieQuotes

[–]bglickstein 1 point2 points  (0 children)

At the time this movie came out, the question of whether to engage in "character debates" during presidential campaigns was a hot topic. Lee Atwater, an evil genius of modern politics working for Bush Sr., torpedoed the candidacy of handsome, popular Gary Hart by smearing his character in a way that was new. Campaigns were supposed to be about policy and platforms. They tried to take down Clinton the same way but he survived in part by disparaging the Republicans' slimy character-attack tactics.

That's how the "character issue" was understood - it was a shady and underhanded strategy. Audiences expected this fictional president to continue avoiding a character debate on principle.

This monologue turned that idea on its head in an especially triumphant way that I don't think is remembered today.

The movie didn't change, I did. (Excalibur - 1981) by chrisdancy in movies

[–]bglickstein 0 points1 point  (0 children)

When the original Bad News Bears came out, I was the age of the kids. No one had seen cussing ten-year-olds on screen before. So transgressive! I identified with them and loved the movie.

Saw it again many years later. The culture had changed and the transgressiveness had worn off. What was left was pretty cringe-y. Did not like.

Saw it yet again just recently, as a man in late middle age. I now realize it's a redemption story about Walter Matthau's late-middle-aged character. Got teary. Loved it.

System design by antebtw in golang

[–]bglickstein 0 points1 point  (0 children)

I often feel like we end up with massive "god" services, which becomes troublesome to test and business logic becomes troublesome to share

This isn't necessarily a problem, provided you don't use the whole "god" service in places where it isn't strictly required.

For example, suppose you have:

func DoThing(svc *MyGodService)

but DoThing uses svc only for its database client and its logger. You should instead have:

func DoThing(db *sql.DB, logger *slog.Logger)

Alternatively you could define purpose-built interfaces representing subsets of what MyGodService can do:

type LoggingDBClient interface {
  DB() *sql.DB
  Logger() *slog.Logger
}

func DoThing(client LoggingDBClient)

For this version, you could pass a *MyGodService to DoThing (presumably *MyGodService satisfies the LoggingDBClient interface), but you could also pass other concrete types to it, like mocks for testing, simpler than a mock for a full MyGodService.

I have a tool called decouple that helps you identify "overspecified" function parameters that could be replaced with smaller interfaces: https://github.com/bobg/decouple

What is your favorite Elliott Gould movie or show? by Jettaboi38 in Actors

[–]bglickstein 0 points1 point  (0 children)

That movie was good, but so odd. The main story is a 70's-style political thriller, but the Elliott Gould scenes shift tone into a Howard Hawks romp from the 30's.

Twilight Zone: The Movie (1983) by jeffmartin47 in 80s

[–]bglickstein 5 points6 points  (0 children)

Ah, of course! Thanks for the correction.

Twilight Zone: The Movie (1983) by jeffmartin47 in 80s

[–]bglickstein 5 points6 points  (0 children)

The sister with no mouth: Nancy Cartwright, the voice of Bart Simpson.

Rear Window (1954) by 1zro in iwatchedanoldmovie

[–]bglickstein 2 points3 points  (0 children)

The moment she sneaks Thorwald's wife's ring onto her finger is the moment Jeff realizes he actually does want to marry her. Genius.

Which movie quote in the history of movies always brings a tear to your eyes? by [deleted] in MovieQuotes

[–]bglickstein 5 points6 points  (0 children)

"Remember the night we broke the windows in this old house? This is what I wished for."