I always have to remind myself what do I need to configure to publish NuGet for various package types (lib, msbuild packages, analyzer packages, source-only, etc).
Here I consolidated all of them.
#dotnet #csharp
github.com/fiseni/confi...
Posts by Fati Iseni
Ok, this is genuinely impressive.
Everyone, go star the repo!
#dotnet #csharp
github.com/kkokosa/dotLLM
I was holding a demo on structs.
No surprise new devs are confused with all the concepts. readonly, ref, in, record struct.. 🤯
Btw, using the `ref` keyword to mark that struct can't live in the heap is the most counterintuitive term ever.
Zero-GC as nothing in heap, only stack? If that's your aim, refactor everything as 'ref struct'. That's the only way to ensure nothing will escape into heap.
But, do you think stack will be enough? It's only 1mb on windows i think (it's 8 on linux)
I tried implementing them and now compiles.
PS. If you're coming from C/C++, be aware that structs behave a bit differently in C#. It's worth being careful about defensive copies and boxing, especially for fat structs.
github.com/Egodystonic/...
Right now it's not compiling, right?
Lovely! I'll go through it someday soon.
Do you ever want to quickly measure code execution time while debugging?
Just released DebugTimer — a simple source-only .NET package for development-time performance diagnostics.
#dotnet #csharp
github.com/fiseni/Debug...
Yes
If anyone needs help with an OSS project, or perhaps you just want a review, hit me up.
#dotnet #csharp
I tested it. It's stable.
fyi, I added few notes in the PR.
This is a really nice feature. @simoncropp.bsky.social extra responsive as always ❤️
Replied to the PR
Ok, this covers it better. Actually, no need to correlate Customer.Id with Address.CustomerId. It's enough to have unique strings per scope.
I quickly created this converter now. Not optimized, but just as POC. Is there an easier way? Or custom converter is the way?
That's the same argument in C++ community in the last 15 years :)
Who thinks it's a good idea to copy C++ in terms of notoriously complex rules?
Is there a Verify scrubber for int Id values? Something that detects correlations as well, e.g. Customer.Id should be same as Address.CustomerId.
@simoncropp.bsky.social
I'm playing with extension properties, and I'm curious why overloading is not allowed. It works just fine for methods.
#csharp #dotnet
Published a new version, added support for MediatR v14.0.0
#dotnet @jimmybogard.com
github.com/fiseni/Pozit...
This was heavily downvoted on reddit :)
If an argument lasts more than 5 minutes, then both sides are wrong.
I think my data-binding library for creating Excel spreadsheets is almost ready for a 1.0
github.com/SimonCropp/E...
Already using it in anger at work.
Spreadsheet code that would have taken a few hours to build now takes a few minutes.
The diff usually comes from the compiler version. I mean, nothing wrong to always target the new tfms or at least recompile the libs. But, I think we overhype this mass NuGet update each year :)
The only true valid reason to update tfms is if we utilize new APIs in BCL.
That's what I expected, almost identical.
If your lib doesn't have dependencies, the effect of targeting the new tfm is negligible (usually none).
What are the reaults if your lib doesn't target net10 explicitly, but the consumer is using net10 runtime?
Published v0.4.0
There are breaking changes. The base infrastructure is updated, and the workflow is streamlined.
I don't expect some drastic changes anymore. I think this one will be a good candidate for a stable release.
#dotnet #csharp
github.com/fiseni/NuSeal
In my experience, it produces very inefficient code. Also, no new approaches, no new ideas. Overall, it slows me down.
I'm sure in other areas perhaps is helpful.
To be honest, this is more obvious to me. It's easy to miss, but not "strange".
The other case was more obscure. The "dead code" contributing to allocations. Much easier to remain unnoticed.
Just a reminder.
Now, I'm seeing this issue everywhere :)