Stop using OrderBy(x => Guid.NewGuid()) to shuffle arrays
In .NET 8+, Random.Shared.Shuffle() is the native, zero-allocation way to handle it. Faster, cleaner, and built-in. #dotnet #csharp
Converting human-readable durations to ISO 8601 format in C#. Handles "2.5 hours" → "PT2H30M", "3 days" → "P3D". Perfect for Schema course durations, video metadata, or API responses that need proper duration formatting #csharp
Simple extension to validate absolute URLs vs relative paths. The file scheme check prevents false positives from file:// URIs on Linux systems.#csharp #dotnet #webdev
I have been using keyset pagination in EF Core for our larger tables and the speed difference is undeniable. Offset pagination is fine for small sets where you need to jump to a specific page. But for high volume data where you just go next or back keyset is much more stable and fast
#dotnet #efcore
Migrating to .net Core Identity without forcing password resets?
Use a FallbackPasswordHasher which extends PasswordHasher<TUser> to
> Verify legacy HMACSHA512 hashes
> Return SuccessRehashNeeded for auto-upgrade
> Seamlessly migrate users on next login
No need to reset passwords
Found something cool today. You can just do this now in C# 14.
You can use the null-conditional operator on the left side of an assignment. Writing instance?.Property = value is perfectly valid in .NET 10.
No more null checks.
#dotnet #csharp
I will admit it: I am late to the Microsoft Applied Skills party.
But the shift in 2026 is undeniable. No more multiple choice guessing. You get a live lab environment and a clock.
Lab based validation beats theory every single time.
#dotnet #azure #ai #learning
Stop letting your JSON serializer dictate your object's design.
Using a private [JsonConstructor] + a Static Factory method ensures your domain objects stay valid while keeping the serializer happy.
Encapsulation > Public everything.
#dotnet #csharp #programming #clean-code
Got two implementations of the same service and getting annoyed by having to redeploy to switch them?
In .NET 10, the Strategy Pattern + DI is the fix. Resolve implementations via config for:
✅ Environment Agility
✅ Zero-code Migrations
✅ Instant Failover
🛠️ #dotnet #csharp
The 2026 dev workflow is wild. 🤯
> Clicked "Create PR in GitHub" from an Azure Board item.
> It auto-created the branch with all the ticket context.
> GitHub Copilot Agent took over and implemented the feature with 0 extra input.
#dotnet #ai #copilot
Looks interesting!