GissaMittJobb

joined 1 year ago
[–] GissaMittJobb@lemmy.ml 9 points 1 month ago (3 children)

Consider the following: You have a class A that has a few dependencies it needs. The dependencies B and C never change, but D will generally be different for each time the class needs to be used. You also happen to be using dependency injection in this case. You could either:

  • Inject the dependencies B and C for any call site where you need an instance of A and have a given D, or
  • Create an AFactory, which depends on B and C, having a method create with a parameter D returning A, and then inject that for all call sites where you have a given D.

This is a stripped example, but one I personally have both seen and productively used frequently at work.

In this case the AFactory could practically be renamed PartialA and be functionally the same thing.

You could also imagine a factory that returns different implementations of a given interface based on either static (B and C in the previous example) or dynamic dependencies (D in the previous example).

[–] GissaMittJobb@lemmy.ml 8 points 1 month ago (7 children)

I've realized that Factories are actually kind of fine, in particular when contexualized as being the equivalent of partials from the world of functionals.

[–] GissaMittJobb@lemmy.ml 25 points 1 month ago

That doesn't really seem to be a particularly useful study. You could probably find the exact same thing by selecting for owners of very expensive bicycles, but you would be proving exactly the same thing (which is nothing at all).

A more reasonable approach would be to split into cohorts of different levels of wealth and then compare internally between those cohorts, to see the difference in emissions of an EV owner/transit rider/biker/ICE owner is.

My gut feeling says that we'd find them ranked on the following order, from lowest emissions to highest:

  1. Biker
  2. Transit rider
  3. EV owner
  4. ICE owner

It would be interesting to check whether that gut feeling holds in real life, and particularly how much the groups differ on a per-cohort basis.

[–] GissaMittJobb@lemmy.ml 5 points 1 month ago (4 children)

For someone who's never played EVE, what does a safe spot do? Are you unable to be attacked in it, or just less likely to be detected?

[–] GissaMittJobb@lemmy.ml 2 points 1 month ago

The whole accepting deaths from car collisions is also a bit fucked up tbh

[–] GissaMittJobb@lemmy.ml 47 points 1 month ago (1 children)

What a fucking loser honestly

[–] GissaMittJobb@lemmy.ml 14 points 1 month ago

This is the real explanation. Couple that with a push in the late 90s/early 2000s to roll out high-speed unmetered internet in the form of ADSL and later fiber.

[–] GissaMittJobb@lemmy.ml 37 points 1 month ago (3 children)

What good is it to get a labour government if labour is just becoming another conservative party?

[–] GissaMittJobb@lemmy.ml 2 points 1 month ago

You're limited on UX when it comes to PWAs. For tools where this matters a lot, PWAs are a non-starter.

[–] GissaMittJobb@lemmy.ml 5 points 1 month ago (1 children)

Iceland runs plenty of these and has a nice culture of frequenting the public bathhouse. It's one of the few things you can do that is actually affordable there.

They do have the advantage of having essentially infinite clean energy in the form of geothermal heat. As do Japan in many cases, for that matter. I'm sure that has something to do with these institutions having staying power there.

Anyway, I think this idea has merits, but not as an energy saving measure. The reason for this is that in order to maintain good water quality, you have to shower thoroughly before getting into the bath, negating the potential energy benefits of the initiative. We can bring it back for it being nice, though!

[–] GissaMittJobb@lemmy.ml 2 points 1 month ago (1 children)

Gotcha!

Well, I'm not in a Balatro-period right now, but when the itch comes back I'll probably buy it for mobile as well.

Are you aware of any platform affordances that have been made for mobile in this release, or is it basically the same as the unofficial ports you can DIY?

view more: ‹ prev next ›