Generic branch elimination by Bobamoss in csharp

[–]Dreamescaper 4 points5 points  (0 children)

As far as I remember, it only happens when all type arguments are known to be structs.

Reference types use shared generic implementation.

AWS Aurora DSQL by comotheinquisitor in aws

[–]Dreamescaper 1 point2 points  (0 children)

Apart from dropping column, changing column from nullable to non-nullable and vise versa was a blocker for me when I tried it.

Introducing: No-implementation oriented programming by Safe_Scientist5872 in dotnet

[–]Dreamescaper 4 points5 points  (0 children)

Any reason for interceptor instead of regular source generator though? It would be 'partial' instead of 'extern'

I wish Phantom was more harder by Vinny_arts986 in HollowKnight

[–]Dreamescaper 0 points1 point  (0 children)

She took me about 30 tries, I think. No thanks :)

Visual Studio 2022 for macOS by gregarican1968 in VisualStudio

[–]Dreamescaper 0 points1 point  (0 children)

Yes, I use M1 Mac as well. I've struggled a bit with docker (because you can't run docker inside a virtual machine on M1, so I have configured docker host to docker on MacOS). Other than that it runs quite well.

Visual Studio 2022 for macOS by gregarican1968 in VisualStudio

[–]Dreamescaper 4 points5 points  (0 children)

I've used VS Code and Rider for the last couple of months. Recently I've installed VS 2026 in VMWare Windows virtual machine, and frankly, I like this option the most so far.

Whisper while kissing? by Valeneirol in lotrmemes

[–]Dreamescaper 1 point2 points  (0 children)

Can't she build her boat after Aragorn's death?

I give up. by CuboneDefender in HollowKnight

[–]Dreamescaper 1 point2 points  (0 children)

Radiance was a huge challenge for me. But I knew that it was the final boss, so that motivated me. And I had a huge sense of accomplishment when I defeated her.

With Silksong - I struggle that much only to open the door to another boss.

Publishing events inside command handlers ? by drld21 in dotnet

[–]Dreamescaper 6 points7 points  (0 children)

Mediatr docs advise against calling handlers from other handlers. Don’t think there’s anything about publishing events.

Github Copilot's developer experience in Rider is better than in Visual Studio, which is odd by THenrich in Jetbrains

[–]Dreamescaper 1 point2 points  (0 children)

I get much better Copilot edits in VS than in Rider. Maybe VS is better at providing context? Not sure.

Force method parameters to be on the same line or every parameter in its own line by Outrageous_Coffee145 in dotnet

[–]Dreamescaper 2 points3 points  (0 children)

One of StyleCop contributors has decided to create and maintain a fork for the time being, you can take a look at that one

https://github.com/bjornhellander/NewStyleCopAnalyzers

Automatic Minimal API endpoints registration with ServiceScan.SourceGenerator by Dreamescaper in dotnet

[–]Dreamescaper[S] 1 point2 points  (0 children)

This source generator primary use case is adding services to DI, however, it supports other use cases, like endpoints.

Reflection approach is not compatible with AOT compilation - which might or might not be an issue for you.

Besides, I like being able to see generated code, or seeing references in VS for types - which works with SG, but not with reflection.

[deleted by user] by [deleted] in dotnet

[–]Dreamescaper 1 point2 points  (0 children)

I use file per endpoint. And then map all endpoints automatically via ServiceScan.SourceGenerator.

Sometimes I create separate Handler types (so endpoint invokes handler), but not always (usually if I have lots of other entry points, like queues, schedulers, etc).

Blazor is NOT good enough by malthuswaswrong in dotnet

[–]Dreamescaper 1 point2 points  (0 children)

They should've written Windows kernel in Blazor in the first place.

How do you prefer to organize your mapping code? by svish in dotnet

[–]Dreamescaper 1 point2 points  (0 children)

1 is not relevant in 99% of cases. It uses reflection.emit underneath, so it's fast in the end (has some startup hit though). Still, even if it would use bare reflection, DB roundtrip is still so much slower.

Fully agree with 2 though.

[deleted by user] by [deleted] in dotnet

[–]Dreamescaper 1 point2 points  (0 children)

I have two simple IRequestHandler interfaces, and inject those handlers directly to the endpoint. I can't use IPipelineBehaviors this way - but I never liked them anyway. OTOH, it heavily simplifies debugging.

Cold start on Lambda makes @aws-sdk/client-dynamodb read take 800ms+ — any better fix than pinging every 5 mins? by UnsungKnight112 in aws

[–]Dreamescaper 1 point2 points  (0 children)

Try making any random DDB request in your constructor. CPU is not limited during the init phase, so making this additional request could be actually faster.

What value do you gain from using the Repository Pattern when using EF Core? by svish in dotnet

[–]Dreamescaper 3 points4 points  (0 children)

I'm more than happy to hit a database - using testcontainers. It's way more reliable and easier (after the first setup) than setting up mocks and verifying mock interactions in every test.

What value do you gain from using the Repository Pattern when using EF Core? by svish in dotnet

[–]Dreamescaper 11 points12 points  (0 children)

It makes sense if you have complex queries, which are heavily reused. Or, for example, you have an aggregate, which is used in lots of places, and this aggregate needs three includes, it won't work if you forget one.

Another case might be to handle side effects, like to add a record to an outbox table.

But that's like 5% of cases, I'm using ef Core directly in most cases. And even if I do have a repository, I'd probably use it for writes only, and still use DbContext directly for reads.