Nemanja Ćirić
codegazer.bsky.social
Nemanja Ćirić
@codegazer.bsky.social
Software engineer
Honestly, I learned it once upon a time, but I use it so rarely that use it or lose it kicks in. Nowadays, I use AI to generate regex because I never use it in prod anyway (mostly I use it to parse logs, as a last resort). But, had I never learned it, I wouldn't be able to direct ai to generate it..
December 3, 2024 at 4:51 PM
As with every question worth asking: depends. Small-ish project, don't imagine a lot of data migrations, performance is important? Dapper.

Project with A LOT of entities, I imagine a lot of iterations and data migrations, etc? EF.
November 28, 2024 at 8:54 PM
I'd say observability is the first step. How much time does each part of the code path you're optimizing taking? Perhaps it's not your C# code which needs optimization, perhaps it's your queries, or your http calls. We host our APIs in Azure KS and our first step is always looking at App insights.
November 24, 2024 at 9:32 PM
I reject your definition of what makes a Christmas movie.
November 21, 2024 at 4:30 PM
Ah OK, you added a property with the same name and made that readonly.

But here's the thing, the whole point of the primary constructor is to not have a declaration and an assignment line per dependency in my code. So this ends up being almost the same sadly :(
November 21, 2024 at 4:22 PM
Wait, in your first image, why is the reassignment of the logger underlined with a squigly, and does it throw an exception/warning during build?
November 21, 2024 at 4:20 PM
I do like they get rid of ceremony code, I do have two minor concerns: no null checks on the passed arguments and no way to make the injected dependencies read-only which is what we currently do right now.
November 21, 2024 at 1:00 PM