« first day (4433 days earlier)      last day (734 days later) » 

08:25
|| welcome-c# samayo
@samayo Welcome to the C# chat! Please review the room guidelines and tips. If you have a question, just post it, and if anyone's free and interested they'll help.
@mr5 Thanks very much, glad I've got some search terms.
08:52
Good moaning
 
1 hour later…
09:52
I've read somewhere that .netcore+ have built in dependency injection mechanism. Does this mean that there's no need to add Autofac anymore because of those built in mechanisms?
 
4 hours later…
13:23
the built-in IOC container works... but that is about it
it is the minimum viable product for an IOC container
Oh, so resolving/instantiating objects still Autofac is needed?
usually it is sufficient, but as soon as you need a single more advanced feature, the built-in servicecollection/serviceprovider becomes useless
@Darj no, that it can still do
but for example, it doesnt have a named registry
you cannot easily create 2 services of the same type and register them with different names
What would be a use case for that?
Oh, gotcha
.AddTransient("reader", CreateMongoDbClient)
.AddTransient("writer", CreateMutationMongoDbClient)
for example
still, the built-in IOC container will suffice for most applications
I'll need to learn that asap then
13:30
depending on the application, you might not even need an IOC container
 
2 hours later…
15:09
Ryan Donovan on December 05, 2022
Suddenly losing a job can be personally destabilizing. But lots of us have been there and gotten through it.
15:28
how difficult would it be for C# developers to learn monads?
@Wietlol Dunno. Probably depends on how much they actually understand anything about FP.
I tried to explain monads/functors to a friend of mine who knows Java. I gave him Optional as an illustration. Not sure he fully got it, though.
if they understand LINQ, shouldnt that be sufficient?
Technically - yes.
I introduced some stuff and my colleagues keep saying they dont understand any of it
however, I am not sure if they dont understand it because it is simply too difficult or if they dont understand it because of a lack of effort
Some people are really bad at being able to think more generally about code. They can bash out classes, constructors, factories all the time but it's just formulaic.
@Wietlol My guess: little bit of column A / little bit of column B
It's not really hard. But it does require thinking about the problem from a different perspective. That perspective shift can be hard if people aren't used to it.
Also, as I said, some just don't really seem to be able to comprehend code well.
15:41
I thought that, considering they do use linq quite a bit, they would already have that different perspective
I found the hardest thing to put across is that FP is about "series of operations". Once you get that, it's easier to talk about functors/monads. They are just ways to apply operations.
So, it requires some background to fully appreciate why those are there. But it's hard to break into that, since if you just say "functors help with chaining the same operation" you'd get quizzical looks about why you'd even do that instead of X existing feature. But talking about the operations themselves gets people going "But why would I use that - seems less convenient"...which is what a functor would be for.
It's kind of a chicken and egg problem. Although if people do a perspective shift, it becomes quite clear.
so perhaps it is more about that they dont understand the why rather than the how?
15:59
Yes, at least in my experience it seems to help.
posted on December 05, 2022 by Mads Kristensen

Staying up to date with relevant news about your tech stack and virtual events is not always easy. There are lots of different sources and seeking out the information can be time-consuming. To help get you the information you need, we’re experimenting with bringing back Developer News inside Visual Studio – this time with some refreshing updates. The post Get your developer news appeared first

posted on December 05, 2022 by ericlippert

Introducing Bean Machine Graph Bean Machine has many nice properties: I’m not going to go into details of how Bean Machine proper implements inference, at least not at this time. Suffice to say that the implementation of the inference algorithms … Continue reading →

user17476959
16:21
Hey ther
user17476959
there
user17476959
Is it working :)
user17476959
?
17:01
Hi all,
is there an open-source project that demonstrates most (if not all) of the async/await and multi-threading features in C#, like the console apps we create all the time to test and investigate async/await behavior..
17:16
posted on December 05, 2022 by Klaus Loeffelmann

A rich user control ecosystem has always been one of the most important WinForms success guarantors. While the runtime support for Custom Controls remains unchanged, there are breaking changes with the design time support for the new Windows Forms (WinForms) .NET Designer. The post Custom Controls for WinForm’s Out-Of-Process Designer appeared first on .NET Blog.

 
3 hours later…
20:16
20:49
[Darj] I've recently watched Tim Corey's video on that. You might want to take a look at it
posted on December 05, 2022 by Phil Haack

There are cases where recovery from an Entity Framework Core (EF Core) DbUpdateException is possible if you play your cards right. Play them wrong and the result is heartbreak and tears as every call to SaveChangesAsync rethrows the same exception.


« first day (4433 days earlier)      last day (734 days later) »