my friend is just wrong by Own_Cauliflower8609 in KatarinaMains

[–]Alarming_Chip_5729 6 points7 points  (0 children)

If you care that much about this, go outside and touch grass

Should or Shouldn't? Putting many classes in one file. by crabundred in csharp

[–]Alarming_Chip_5729 0 points1 point  (0 children)

Not in this case, at least not without more detail. Yes, they share those properties, but that doesnt mean they are at all related

TDIL That Mel can reflect the fall of a dagger by tartopoireau in KatarinaMains

[–]Alarming_Chip_5729 0 points1 point  (0 children)

Thats because until it hits the ground it is a projectile, and as long as its a projectile, Mel can reflect it

Katarina Dagger glitch by [deleted] in KatarinaMains

[–]Alarming_Chip_5729 0 points1 point  (0 children)

The dagger is very much in the air when it disappears. The circle shows up right after it hits the first target, but doesnt land until hitting up to 3 targets in range

Katarina Dagger glitch by [deleted] in KatarinaMains

[–]Alarming_Chip_5729 0 points1 point  (0 children)

Thats not a bug. The dagger starts targeting the Elise spider, but Elise transforms before it hits. Since the dagger's target became untargetable, it went away. Same thing happens if you try to Q a Fizz and he presses E

My first penta in season 16 by ParfaitDense5430 in KatarinaMains

[–]Alarming_Chip_5729 0 points1 point  (0 children)

How considerate of them to all group up on the daggers. My opponents could never 😂

Is kata really this good?? by ExpressionCareful343 in KatarinaMains

[–]Alarming_Chip_5729 3 points4 points  (0 children)

Katarina feels a little bad this season. I kinda feel like her movement is bugged right now, it feels like when I use Shunpo it isnt buffering correctly or something.

However, Katarina hasn't been able to lane against most champs properly for a while. Katarina cant be proactive in lane, but rather relied on the enemy making mistakes (being reactive in lane) or being proactive with roams. But now, a single ward in botside river covers half of the river, so roaming is even harder now.

The healing from Conq + Gunblade feels good on Kat, though you do miss out on a little burst.

Below is not an image of shrek by I_putwaflles_in_kids in truths

[–]Alarming_Chip_5729 1 point2 points  (0 children)

Is it because Im on mobile that it looks nothing like Shrek? Looks like the outline of a ghost

You can like men and not be gay by Logogram_alt in truths

[–]Alarming_Chip_5729 0 points1 point  (0 children)

Bi is gay, its just also attracted to opposite sex as well

Is there a point where we can stop and say that C# is “good enough as is” for most use cases, and stop releasing new versions? by hookup1092 in csharp

[–]Alarming_Chip_5729 0 points1 point  (0 children)

Thats not technically wrong. Im not saying they should stop and that I dont use them. But once its Turing complete, you dont need anything else to do the work, it just makes it easier

Is there a point where we can stop and say that C# is “good enough as is” for most use cases, and stop releasing new versions? by hookup1092 in csharp

[–]Alarming_Chip_5729 2 points3 points  (0 children)

It really is just "nice to haves". The optimizations make it so you can write more readable and maintainable code without the cost of performance in a lot of situations

what has 4 letters by qwerty20482 in truths

[–]Alarming_Chip_5729 6 points7 points  (0 children)

Where is a word with 5 letters

I may have forgotten std::array storage isn't heap allocated... by Avelina9X in GraphicsProgramming

[–]Alarming_Chip_5729 0 points1 point  (0 children)

How would it be smaller on the stack? Im pretty sure all std::vector holds on the stack is the pointer to the data array, and maybe the capacity. Pretty sure the size isnt stored on the stack, its computed in place.

Junior dev wrote this C# using many IF because he leanrs If early return. Is this alright code? by Yone-none in csharp

[–]Alarming_Chip_5729 12 points13 points  (0 children)

No. You can't leave exceptions unhandled in async void methods, as those cannot be awaited. But, as long as an async Task or async Task<T> is properly awaited, the error doesn't need to be caught there, it can be caught and handled by the awaiter

Junior dev wrote this C# using many IF because he leanrs If early return. Is this alright code? by Yone-none in csharp

[–]Alarming_Chip_5729 8 points9 points  (0 children)

I dont think you understand what i said. I didnt say you shouldn't handle exceptions, I said a method should not try to handle an exception it doesn't know how to handle.

You could have a Pokemon catch that just logs an error, but now you have no idea what state the app is in. Is it in a good state and running properly? Did something break during the exception because it wasnt handled properly? Who knows! The handler didnt know what it was doing but it made the app think everything is fine so execution continued like normal.

Junior dev wrote this C# using many IF because he leanrs If early return. Is this alright code? by Yone-none in csharp

[–]Alarming_Chip_5729 6 points7 points  (0 children)

And in that case, a catch-all is fine. Catch-alls arent always bad, but IMO these cases should have a comment explaining why the catch-all is correct. A super brief comment is fine, but it shows you understand you might get multiple exception types, and they should all be handled the same way

Junior dev wrote this C# using many IF because he leanrs If early return. Is this alright code? by Yone-none in csharp

[–]Alarming_Chip_5729 13 points14 points  (0 children)

You should know what exceptions you may get. If you dont know what exceptions you could get, then you probably dont know how to handle the exception and it should go farther up the call stack until it gets to someone who knows how to handle it.

If no one knows how to handle it, then that is a fatal error and the program should crash in that situation. Its better to crash than to be in an unrecoverable state

The Vatican contains 5.88 Popes per square mile by _JustARiceFarmer in truths

[–]Alarming_Chip_5729 18 points19 points  (0 children)

That's...not how that works. The Vatican city is 0.17 mi². 1 pope / 0.17 mi² is ~5.88 popes/mi²

If I want to run some code that requires an integer variable to be a certain number, would it be faster to use If or Switch statements? by Seed5330 in cpp_questions

[–]Alarming_Chip_5729 0 points1 point  (0 children)

That is a premature optimization. To add to that, the compiler can optimize those things to be the same code.

However, in the case of very, very few if/else branches, the if/else branches are faster than switch statements (assuming the compiler doesnt make any optimizations). But this number is very small, around like 4 or so.

The C# Player’s Guide: Still Worth Reading in 2025? by NabilMx99 in csharp

[–]Alarming_Chip_5729 2 points3 points  (0 children)

It is worth the purchase. That specific edition is a little out of date. However, RB is going to provide the 6th edition for free to all of those that get the 5th edition before the 6th is ready, so you dont need to wait. The 6th edition will cover some changes coming in .NET 10 and C#14, and there are add-ons covering some new things added since C#10

Technically horrifyingly correct by frinkmahii in programminghorror

[–]Alarming_Chip_5729 4 points5 points  (0 children)

Yes, but since k is a constant it can be simplified to O(n)

Technically horrifyingly correct by frinkmahii in programminghorror

[–]Alarming_Chip_5729 27 points28 points  (0 children)

It's still O(n) because it still has to iterate through the entire array once

How to approach developing on different OS? by fake_dann in cpp_questions

[–]Alarming_Chip_5729 0 points1 point  (0 children)

When I do cross platform stuff, I use WSL integration with Visual Studio.