There have been multiple accounts created with the sole purpose of posting advertisement posts or replies containing unsolicited advertising.

Accounts which solely post advertisements, or persistently post them may be terminated.

sopuli.xyz

yemmly , to funny in Look buddy

As if Taco Bells have cashiers

BassaForte ,
@BassaForte@lemmy.world avatar

Sir, this is a Wendy’s.

devfuuu , to funny in Look buddy

Yes.

ummthatguy , to funny in Look buddy
@ummthatguy@lemmy.world avatar
secret300 , to foodporn in Cast Iron Pizza

How much for you to be my chef?!

MentalEdge OP ,
@MentalEdge@sopuli.xyz avatar

I dunno man. If you can just pay me enough to cook some for myself, and have a place to live, we’d have a deal.

valid , to funny in dog dog dog
FreshLight , to funny in dog dog dog

You could also go for “Dreihund” or “Fluffy

grrgyle , to programmer_humor in STOP DOING DEPENDENCY INJECTION

DI: ☺️

DI frameworks: 😒

deadbeef79000 ,

I just DI all the time, it’s called a constructor.

Lmaydev , to programmer_humor in STOP DOING DEPENDENCY INJECTION

I love dependency injection personally.

I managed to completely change how YARP routed requests by registering a single interface.

The flexibility it provides is awesome. And it makes testing so much easier.

YtA4QCam2A9j7EfTgHrH , to science_memes in Seal ions

If you want to read about ocean mammals on strike, you should do yourself a favor and read John Scalzi’s “Starter Villain.” It is a hoot.

DragonTypeWyvern ,

I hope the dolphins find out out about syndicalism one day

jimmydoreisalefty , to science_memes in Seal ions
@jimmydoreisalefty@lemmy.world avatar

Noice one!

Cat(ion)s and an(i)ons must unite and join the general strike with the seals!

Naming:

Sealium ion, positive charge

Sealide ion, negative charge

koncertejo , to programmer_humor in STOP DOING DEPENDENCY INJECTION

As an audio engineer, I was very confused about what this had to do with Direct Injection for a second.

deadbeef79000 , to programmer_humor in STOP DOING DEPENDENCY INJECTION

Urgh. I just sicked in my mouth.

Die in a hole DI frameworks.

I already have an injection ‘framework’ it’s called a constructor. I already have a factory it’s called new

ulkesh , to programmer_humor in STOP DOING DEPENDENCY INJECTION
@ulkesh@beehaw.org avatar

…and the wheel turns again…

tatterdemalion , to programmer_humor in STOP DOING DEPENDENCY INJECTION
@tatterdemalion@programming.dev avatar

Say what you want about DI frameworks, but if I have to remove another fucking global variable so I can write a test, I’m going to cut a bitch.

cadekat ,

Dependency injection is so much worse. Oh, hey, where’d this value come from? Giant blob of opaque reflection code.

Zagorath ,
@Zagorath@aussie.zone avatar

It can be used in bad ways, but if it’s used in the right way you should never have the situation you just described.

grrgyle ,

Same could be said of a global. There’s a time and a place for each.

One thing I’ll say is I don’t remember us needing a team of senior+ devs to handle web app back in the day…

cadekat ,

I’m not exactly sure what you mean. Doesn’t all dependency injection work the way I described?

Without being familiar with the framework, you can’t trace your way from the class getting injected into to the configuration, even if you’re experienced with the language.

Zagorath ,
@Zagorath@aussie.zone avatar

I don’t think so. When I’ve seen it done it’s usually not been random values injected (except when those values are secret keys which should absolutely not be stored in code to begin with), it’s usually injecting a service. Another class, usually with a name that makes it easy to trace down. Like if you’re building an OrderService, that might take as a dependency an IProductService, which would have injected into it the class ProductService (personally, I don’t like the Hungarian notation that C# uses, but it’s a convention and my preference for sticking to strong conventions for the sake of consistency outweighs my distaste for Hungarian notation). That’s easy to find, and in fact your IDE can probably take you straight to it from the OrderService’s constructor.

cadekat ,

I’m using value in the loosest sense, like how all objects are values.

So now if you have three implementations of IProductService, how do you know which one is configured?

Zagorath ,
@Zagorath@aussie.zone avatar

It’s easy to imagine a hypothetical way that could lead to problems. But in all the code I’ve worked with, either that scenario is avoided entirely, or other context makes it absolutely clear which IProductService is being used.

pkill , to programmer_humor in STOP DOING DEPENDENCY INJECTION
deadbeef79000 ,

It came over the wire as text! How did you turn it into that?

Gold.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • lifeLocal
  • goranko
  • All magazines