« first day (4373 days earlier)      last day (583 days later) » 

12:30 AM
@Botler I would recommend making your own extension method though "GetAtOrNull()" as an extension on IList rather than IEnumerable
 
 
7 hours later…
7:10 AM
G'morning
 
 
1 hour later…
8:11 AM
@Botler that is (Y)
 
 
4 hours later…
12:16 PM
[Hector] Plot twist, the robot is actually super intelligent and sabotaged his own presentation to raise awareness about Elon's evil plans
[Hector] can you explain what makes it better than the competition? I remember nlog was pretty easy to set up and worked fine for me, why would I need Serilog?
[Captain Obvious] I've used it and I like it, I haven't used NLog
[Captain Obvious] That's all I can say for it really
[Captain Obvious] Fuck log4net
[Captain Obvious] tbh I think it's jsut because it's dead easy to add sinks, sources etc
 
Serilog was my first logging library I've used/learned. It was relatively straightforward to hook it up into the project and it didn't require tons of hours spent of understanding how to do basic things.
Haven't had any experience with other logging libraries, so can't compare
 
mr5
dillema: I am in charge of updating mobile cicd and according to our process, it must be code reviewed ...
before submitting to higher branches but none of my colleagues know mobile dev and even our...
devops knows nothing what a certain command do and he doesn't seem interested in knowing too. The problem with it being code reviewed is it takes time, like a day or even a week to get any approval and most of the time, I need the changes in other branch as well. To work it out, I just always duplicate cicd changes in different branches but I must always remember to revert it before MR otherwise there would be merge conflicts
Fk this text limitation
 
12:32 PM
[Captain Obvious] Does the PR not trigger a build? Because if the build succeeds and spits out valid AABs/IPAs then you're okay right
 
12:58 PM
I have it much easier with logging... I just wrote my own :D
 
1:10 PM
[Captain Obvious] I expect nothing else
 
I may use discord more often now idk
but it's still an unreliable way to reach me
 
mr5
1:32 PM
I mean, the problem is not the generated output but the process I must endure
There should be no code review for my cicd changes
Or at least approve it faster
 
[Captain Obvious] Why not use discord instead of SO chat
[Captain Obvious] come to the dark side
 
because discord is home of the awful, terminally online, and mentally diseased?
it's worse than 4chan, might even be worse than twitter
 
[Captain Obvious] You've spent too much time in dodgy servers
 
a majority of servers are dodgy
and then the ones that claim to be nice are full of 14yo nonbinary kids who go into uncontrollable fits of tearful hysteria when they lose a fandom-related argument
 
 
1 hour later…
2:54 PM
Hi all
 
In pastebin.com/raw/hFN3p287, is there a more concise way of writing var collection = new WidgetCollection(new List<Widget> { new Widget("red") });? I can't change the definitions of Widget or WidgetCollection.
More accurately, I can't change the text of the definitions, but I can add extension methods, if that helps.
 
If you're doing this in a loop: var str = $"For item {i}: {obj[i].someProp} - {obj[i].anotherProp} - document";, would it be better to use a StringBuilder?
I mean as far as performance
 
I usually only use StringBuilder if constructing the string takes O(N) operations. Your string takes O(1) operations. So I would not use StringBuilder there.
 
Thanks, Kevin. I understood Big O notation in uni but it's gone outta my head, like so much else
 
Rough guideline: if you can construct the string entirely in the line where you declared it, then you probably don't need a StringBuilder.
 
3:20 PM
Good to know
 
 
3 hours later…
6:08 PM
posted on October 06, 2022 by Sameer Khandekar

Learn how to easily add authentication to your .NET MAUI applications with the latest version of the MSAL.NET library! The post Authentication for .NET MAUI Apps with MSAL.NET appeared first on .NET Blog.

 
 
5 hours later…
10:54 PM
@Alex string interpolation should be a stringbuilder in the generated binaries anyway
if not, I will personally come to dotnet's house and beat it up
in a loop, re-assigning a string variable with thatVariable + "appended string" is bad
 
[Alex6743] Thanks, Wietlol
 
because you would be making new byte[] in the background to hold that data
and copying the old array over every time
but in general, re-assigning a variable should be avoided anyway
they are much more error prone, difficult to read and difficult to reason in combination with closures
 
Every time I come here, I learn something new. I need to stop doing that :D
 

« first day (4373 days earlier)      last day (583 days later) »