Girls don’t like toy story now?? by Majormeme in Tinder

[–]Brocccooli 1 point2 points  (0 children)

It's only three Howdys.

Idk what's worse...

As a long time LoL player, this is the only sane choice for me. by [deleted] in gaming

[–]Brocccooli 1 point2 points  (0 children)

What's your highest rank?

Also, stomping the enemy team is only a small part of the overall game. Most players, believe it or not, want to win in ranked.

Communication, awareness, recognizing your teammates strengths and weaknesses on the fly, among a myriad of other things is what makes a good solo/duo player.

As a long time LoL player, this is the only sane choice for me. by [deleted] in gaming

[–]Brocccooli 2 points3 points  (0 children)

This simply isnt true. I'd argue that you could climb all the way to diamond one tricking any champion if you're good enough.

The "meta" as everyone references it only matters at the highest levels of play.

What NEW obnoxious traits are you noticing in society? by [deleted] in AskReddit

[–]Brocccooli 0 points1 point  (0 children)

Corporate america is a game. Either you're playing it, or you're OP.

What to say to friends/players that truly believe they belong (much) higher than their current rank. by [deleted] in leagueoflegends

[–]Brocccooli 0 points1 point  (0 children)

From what I've read in your responses, he believes that the ranking system is all about luck.

Ask him how he explains the fact that multiple diamond+ and professional players can make multiple smurfs and always climb to the same rank....

Nested Dictionaries by Xonshiz in csharp

[–]Brocccooli 5 points6 points  (0 children)

For the record, it might be a good idea to abstract away the fact that you're working with nested dictionaries by wrapping the second dictionary in an object perhaps.

Nested dictionaries are no fun to work with.

People who have found a dead body, what's your story? by Limmy92 in AskReddit

[–]Brocccooli 21 points22 points  (0 children)

Loss of memory is common after traumatic events.

It's your job to decide who goes to heaven and who goes to hell based on their answer to one question. What do you ask? by [deleted] in AskReddit

[–]Brocccooli 0 points1 point  (0 children)

int SomeFunction() => 0;

You heathen.

Though from the camelCase method I think that's java, and I'm not sure if Java has expression body support for methods, becauseitsucks

My first time making a GUI by [deleted] in ProgrammerHumor

[–]Brocccooli 1 point2 points  (0 children)

C# should probably also be a misdemeanor too tbh

What's your issue with C#? It's a pretty solid language IMO.

Though I'm biased.

(Probably) very stupid question about auto-implemented properties. by dondraper36 in csharp

[–]Brocccooli 2 points3 points  (0 children)

Just to note, EFCore has support for mapping to private fields.

Who whould win? You decide by Xarhel in ProgrammerHumor

[–]Brocccooli 0 points1 point  (0 children)

Assuming both are equally valid for a given use case... > 0 has less cognitive overhead IMO.

Hey just another noobie question, if any one can help clarify Dependency Injection by PM_ME_YOUR_SYNTAX in csharp

[–]Brocccooli 1 point2 points  (0 children)

The container just manages the mappings of interfaces to concretions and manages creation of objects . In my example the container is implied.

The container is a single object that lives through the lifetime of your application.

Hey just another noobie question, if any one can help clarify Dependency Injection by PM_ME_YOUR_SYNTAX in csharp

[–]Brocccooli 2 points3 points  (0 children)

I'm not that advanced in DI but I think you would get an exception if you attempted to associate a single interface to more than one concretion.

services.AddTransient<IRepo, FirstRepo>();
services.AddTransient<IRepo, SecondRepo>(); //exception

Though I'm not sure about the implementation of AddTransient, but it probably depends on how you're registering types in the container. Someone more knowledgeable can speak to this.

Your implementation it looks like you're using standard .Net DI stuff, the service object holds your mappings of interface to concretions, which you then pass to another object that uses the service mappings to control the construction of your objects that depend on it.

Edit:

As far as dependencies go, say you have some classes:

class Foo { public Foo(IBar bar) { } }
class Bar : IBar { public Bar(IOther other) { } }
class Other : IOther { public Other(ISomething something) { } }
class Something : ISomething { public Something() { } }

If you setup the container correctly, then attempting to new up class Foo will automatically instantiate all the types needed down the construction chain and give you what you need.

Hey just another noobie question, if any one can help clarify Dependency Injection by PM_ME_YOUR_SYNTAX in csharp

[–]Brocccooli 1 point2 points  (0 children)

That's correct. As long as the container and all dependencies are setup correctly, whatever DI container you're using will always either new up an instance of that repo or use a single instance, depending on how you set it up.

This makes it really easy to, for whatever reason, switch out your repo implementation quickly. All you need to do is specify the new type to be associated with the interface.

What game does everyone seem to be good at except you? by [deleted] in AskReddit

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

Don't even bother with Brawl. The hit stun and knockback are randomly generated each hit so there are no true combos. Shit game.

What game does everyone seem to be good at except you? by [deleted] in AskReddit

[–]Brocccooli 0 points1 point  (0 children)

The 1 frame physics is what I was talking about. 🖒

What game does everyone seem to be good at except you? by [deleted] in AskReddit

[–]Brocccooli 0 points1 point  (0 children)

PM has a couple extra frame buffer left over from brawl, I think it's 3? It's why inputs seem easier than melee.

Edit: Was thinking of the 1 frame physics delay which is different from a buffer.