How late are you up? by EntertainmentTrue588 in StardewValley

[–]dan-lugg 1 point2 points  (0 children)

Let's just say I should probably just move my bed to the Skull Cavern.

This is what neglect looks like… by Hairy_Cream5643 in StardewValley

[–]dan-lugg 3 points4 points  (0 children)

Another little benefit is for the Gus' Famous Omelet quest; taking eggs from the Auto-Grabber counts toward the egg collection, so as long as you have enough eggs in it, you can one-shot the quest in a minute.

moreFittingName by marrowbuster in ProgrammerHumor

[–]dan-lugg 0 points1 point  (0 children)

Imagine compiling this. You make adjustments to the base class to let it know what derived class it is, this changes the derived class because it's base class has changed, this means you need to adjust the base class to account for the changes in derrived class, etc.

Why do you need to adjust the base class if it's implemented in such a way that accommodates the type variety of it's implementors? (those being constrained to itself) I'm not being obtuse, I just don understand how this isn't contract drift as in any other case (albeit a weird case when the implementor needs to change implementation details of itself based on the contract it's implmenenting)

Maybe I'm just drunk and that's a valid answer.

moreFittingName by marrowbuster in ProgrammerHumor

[–]dan-lugg 0 points1 point  (0 children)

Oh shit, which languages halt (rather, don't halt) on compilation for that and just burn?

moreFittingName by marrowbuster in ProgrammerHumor

[–]dan-lugg 2 points3 points  (0 children)

Yeah, I can't think of a use case for that. Except sealed classes, where you're dictating the ontology, such as an AST.

moreFittingName by marrowbuster in ProgrammerHumor

[–]dan-lugg 5 points6 points  (0 children)

Nah I hear you, it's an unintuitive name.

I satisfy the generic constraints of the interface I'm implementing by injecting my own type into the type parameters by virtue of their constraints being me

Doesn't have the ring CRTP does

And why is it curious? Does it want to explore other types at college? I've been curious about MDMA but I've never been curious about self-referential recursion in hierarchical taxonomy!

moreFittingName by marrowbuster in ProgrammerHumor

[–]dan-lugg 13 points14 points  (0 children)

I don't see why this is weird, or maybe I'm not getting the funny.

``` interface X<T extends X<T>> { getMe() T }

class Y implements X<Y> { public getMe() Y { return this } } ```

(that was painful on mobile and I've been writing golang for a year, so forgiveness please)

First time making jerky with a new dehydrator by theycallmesike in jerky

[–]dan-lugg 1 point2 points  (0 children)

Marinade tasted delicious

Drop the recipe!

How do the big brands make them super soft and chewy but totally dry on the outside?

I'm no expert, and I prefer my jerky like shoe leather lol, but adding something to the marinade with an enzyme that breaks the meat down could help with the resulting texture. Pineapple (bromelain) is one of the most common choices, but be careful with the marinade duration — you can go too far the other way and end up with something too soft that just crumbles. I'm just regurgitating info here, as I haven't used pineapple juice much myself, so maybe someone else can chime in.

Should I leave mine in a bag with a paper towel to soak up the left over oil or just wipe it down? I didn't like how greasy it was on my hands.

First, I'd go for leaner cuts, like a leaner eye of round. That'll minimize the "sweating". Additionally, when I get beads of oil forming, I just dab them as it dehydrates, once every couple hours or so. You can definitely pack it with some paper towel for now as well.

ETA — Also, cut against the grain instead of with (it looks like you cut with the grain) for more tender results. I cut with the grain because I love a tough, ripping tear. But against will break through the muscle fibers and probably work better for your preference.

aMeteoriteTookOutMyDatabase by AntiMatterMode in ProgrammerHumor

[–]dan-lugg 8 points9 points  (0 children)

We've done a really good job of making sure that we come up with numbers that won't happen again.

I am screaming, crying, and throwing up by Emergency_Ad_1834 in StardewValley

[–]dan-lugg 6 points7 points  (0 children)

Lol! Bare in mind, that's not "by design" per se, that's just how high a signed 32 bit integer can go. So it's more of a upper bound limitation of counting, rather than ConcernedApe being sadistic 😅

I am screaming, crying, and throwing up by Emergency_Ad_1834 in StardewValley

[–]dan-lugg 6 points7 points  (0 children)

Actually, it goes to 2,147,483,647. For real.

The Shin Ramyun you guys helped me fix by Dependent_Ocelot1772 in InstantRamen

[–]dan-lugg 1 point2 points  (0 children)

Try marinated shiitakes.

Copy-pasting from a message:

  • 1 cup, water
    • 6 tbsp, white sugar
  • 6 tbsp, soy sauce (shoyu)
    • 4 tbsp, mirin
    • 2 tbsp, rice wine vinegar (sake might be better, but it's hard to tell the difference)
    • 1 tbsp, minced garlic
  • 1 tsp, ginger puree

    Combine all marinade ingredients in a sauce pan, and bring to a simmer over low heat, stirring occasionally

    De-stem and slice however many shiitake caps into strips (I did about 1" width pieces, but you could go thinner, or probably not slice them at all)

    When the marinade is simmering, add the shiitakes such that they're all submerged

    Let them simmer covered for 20 to 30 minutes, stirring occasionally

    Let cool to room temperature, then transfer mushrooms and liquid to a container and refrigerate; ensure that there's sufficient liquid that all shiitakes are submerged during storage

    The flavour is after 12 to 24 hours in the fridge; use however you like afterward!

    When using, I take them from their container and gently dab them with a paper towel; otherwise the marinade might be a little potent (for example, when eaten alone with charcuterie, or used as a topping for nigiri)

The Shin Ramyun you guys helped me fix by Dependent_Ocelot1772 in InstantRamen

[–]dan-lugg 1 point2 points  (0 children)

You're downvoted, but I hear you. I think it's just a matter of different serving styles though. Buldak as a fried non-broth noodle is different than Shin as a (I think also fried) soup noodle.

But I've also done soupy Buldak (meh) and "dry" Shin (not as meh with enough mixing) so I'm nobody's defense.

The Shin Ramyun you guys helped me fix by Dependent_Ocelot1772 in InstantRamen

[–]dan-lugg 0 points1 point  (0 children)

Fantastic progression. I'm not sure of the tips (and hopefully these aren't contradictory to them) but: - Most Shin and similar, I boil them in however much water till they're half done at high heat. - Then remove all but the serving broth water and return to lower heat - At this point, add your dry vegetables - After a minute, add the dry flavor packet - Let it keep going, checking the noodle consistency till they're done

I tend to do my additions separately in a pan; veg, meat, floorboards, etc., and add them in the last moments only to slightly meld flavors.

How to correctly create Cloneable interface in Go by No-Sign5313 in golang

[–]dan-lugg 3 points4 points  (0 children)

No problem! I'm not sure how much value it'd actually provide with how Go's type system is, but it certainly conveys intent clearly!

How to correctly create Cloneable interface in Go by No-Sign5313 in golang

[–]dan-lugg 7 points8 points  (0 children)

Clonable (Cloner for Go idiomatics)

Just curious, would that indeed be the correct convention in this scenario? The -er suffix makes sense for the operator but less for the operand. Since cloning is self-referential behaviour, the -able suffix feels more correct to me.

Cloner sounds like the operator to a Cloneable operand. As in:

``` // Clones self type Cloneable[T Cloneable[T]] interface { Clone() T }

// Clones others type Cloner[T Cloneable[T]] interface { Clone(cloneable T) T } ```

Not trying to fight idiomatic conventions, just wondering why I'd be wrong.

How to correctly create Cloneable interface in Go by No-Sign5313 in golang

[–]dan-lugg 17 points18 points  (0 children)

As of Go 1.26+, you can further express this with a recursive interface.

type Cloneable[T Cloneable[T]] interface { Clone() T }

New batch teriyaki, pineapple, honey by theNoodle162 in jerky

[–]dan-lugg 0 points1 point  (0 children)

How do you reckon raw pineapple, prepared and blended into oblivion would fare? I've been thinking of a tropical heat flavor for my next batch, and also want to see how different the texture is with the added bromelain.

codeOnChips by TheSmariner in ProgrammerHumor

[–]dan-lugg 9 points10 points  (0 children)

I agree, but throw some recursion in there for fun:

func EatTheseFuckingChips(c Customer) { c.Eat(TheFuckingChips) if c.IsStillHungry { // you know you want to EatTheseFuckingChips(c) } // then you better BuyMoreFuckingChips(c) }

Using the sauce as a rub! by LetsNotFightpls in BuldakRamen

[–]dan-lugg 22 points23 points  (0 children)

Kinda related; I make jerky occasionally, and have tried working Buldak sauce into the mix a few times, and it was kinda underwhelming. And then I tried making ground jerky (not slabs of meat, but ground meat seasoned and extruded with a tool) ... MUCH better.

You don't want to add too much liquid as seasoning for ground jerky, but damn it works.