Roxeem's Avatar

Roxeem

@roxeem.com

Software Architect • C# Developer Advocate • .NET/C# Technical Blogger Blog: roxeem.com Medium: medium.com/@roxeem

14
Followers
23
Following
30
Posts
12.09.2025
Joined
Posts Following

Latest posts by Roxeem @roxeem.com

Preview
The .NET Pipeline That Makes Source Generators Feel Instant Deep dive into .NET source generators, and understand how to design efficient pipelines that minimize recompilation and boost codegen performance.

Deep dive into #dotnet source generators, and understand how to design efficient pipelines that minimize recompilation and boost codegen performance.
#dotnet #sourcegen #roslyn

15.12.2025 12:05 👍 0 🔁 0 💬 0 📌 0
Preview
Incremental Source Generators in .NET In this post, I'll show you what Roslyn source generators are, why they're a massive improvement over old techniques, and how to build a simple, high-performance generator from scratch.

An introduction to #dotnet Source Generators. How to eliminate boilerplate, boost performance, and replace runtime reflection with compile-time code generation.

#dotnet #roslyn

08.11.2025 20:26 👍 0 🔁 0 💬 0 📌 0
Preview
Testing HttpClient in .NET without Moq or NSubstitute How to unit test HTTP clients in .NET without relying on mocking frameworks (Moq or NSubstitute) using DelegatingHandler.

Testing HttpClient in .NET without Moq or NSubstitute

How to unit test HTTP clients in .NET without relying on mocking frameworks (Moq or NSubstitute) using DelegatingHandler.

26.10.2025 11:34 👍 3 🔁 1 💬 0 📌 0

A Pragmatic Guide to Server-Sent Events (SSE) in ASP.NET Core

Learn how to implement Server-Sent Events (SSE) in ASP.NET Core. Compare SSE vs WebSockets & SignalR, and apply scaling best practices.

https://roxeem.com/2025/10/24/a-pragmatic-guide-to-server-sent-events-sse-in-asp-net-core

24.10.2025 15:03 👍 0 🔁 0 💬 0 📌 0

When you design APIs that return large datasets, pagination is not optional. Without it, you risk overwhelming your database, your network, and your consumers.

#dotnet #aspnet
https://roxeem.com/2025/10/11/strategic-pagination-patterns-for-net-apis

11.10.2025 13:44 👍 1 🔁 0 💬 0 📌 0

In #dotnet 10, DATAS is enabled by default. The GC now adjusts heap thresholds to match the actual app memory needs.

✅ Light load → GC frees memory aggressively
✅ Heavy load → heap expands on demand
⚠️ May raise p99 latency in spiky workloads.

#dotnet #csharp #performance

09.10.2025 11:00 👍 0 🔁 0 💬 0 📌 0

⚡In .NET 9, even tiny arrays hit the heap, adding GC overhead. In .NET 10, if an array never leaves the method, it’s stack‑allocated. Result → ~2× faster, 0 allocations, less GC pressure.

#dotnet #csharp
https://roxeem.com/2025/09/30/what-net-10-gc-changes-mean-for-developers/

07.10.2025 11:25 👍 1 🔁 1 💬 0 📌 0
Post image

.NET 10 GC tuning demonstrates how stack allocations, DATAS, and region sizing reduce allocations, improve latency, and lower your cloud costs.

#dotnet #csharp #gc #performance
https://roxeem.com/2025/09/30/what-net-10-gc-changes-mean-for-developers/

30.09.2025 15:47 👍 1 🔁 1 💬 0 📌 0
Post image

In C# 14, you can provide custom behavior for compound assignments like `+=`, `-=`, etc..

#csharp #dotnet #dotnet10

26.09.2025 07:01 👍 0 🔁 0 💬 0 📌 0

No thank you 😂

25.09.2025 19:08 👍 0 🔁 0 💬 0 📌 0
Post image

Fancy more partial members in C#? How about constructors and events? 😏

#csharp #dotnet #dotnet10

25.09.2025 07:01 👍 0 🔁 0 💬 1 📌 0
Post image

We can now write an accessor body that uses the compiler-synthesized backing field with no explicit private field. 🎉🎉🎉

#csharp #dotnet #dotnet10
https://learn.microsoft.com/en-us/dotnet/csharp/whats-new/csharp-14#the-field-keyword

24.09.2025 07:01 👍 0 🔁 0 💬 0 📌 0

Hey #dotnet engineers and enthusiasts. Let's connect 🙂

23.09.2025 08:05 👍 0 🔁 0 💬 0 📌 0
Post image

We can now write an accessor body that uses the compiler-synthesized backing field with no explicit private field. 🎉🎉🎉

#csharp #dotnet #dotnet10
https://learn.microsoft.com/en-us/dotnet/csharp/whats-new/csharp-14#the-field-keyword

23.09.2025 07:01 👍 0 🔁 0 💬 0 📌 0
Post image

In C# 14, you can now add 'out', 'ref', 'in', 'scoped', or 'ref readonly ' to simple lambda parameters without specifying types.

#csharp #dotnet #dotnet10

22.09.2025 16:04 👍 1 🔁 1 💬 0 📌 0
First-class Span<T> conversions

First-class Span<T> conversions

The C# 14 compiler now recognizes common conversions (T[] → Span, string → ReadOnlySpan, etc.) This reduces the need for explicit `.AsSpan()` calls and improves overload resolution.

#csharp #dotnet #dotnet10

21.09.2025 06:00 👍 1 🔁 0 💬 0 📌 0
nameof supports unbound generics

nameof supports unbound generics

This is one of those small life improvements in C# 14 that bothered me for years, and I'm really glad they've finally fixed it. 😍
You can pass an unbound generic type to `nameof`.

#csharp #dotnet #dotnet10
https://roxeem.com/2025/08/30/c-14-will-change-how-you-code-heres-why/

20.09.2025 06:00 👍 1 🔁 0 💬 0 📌 0
Post image

Stop treating prompts like magic spells. Treat them like software. Orchestrate, secure, and scale your AI workflows with real engineering.

https://roxeem.com/2025/09/16/the-hidden-architecture-behind-fast-and-reliable-ai-prompts/
#dotnet #csharp #ai #promptengineering

19.09.2025 16:14 👍 2 🔁 1 💬 0 📌 0
Post image

🎉 Finally in C# 14, the null-conditional operators `?.` and `?[]` now work on the left side of = (and compound assignments). The RHS is only evaluated when the LHS isn’t null.

#dotnet #csharp #dotnet10

https://roxeem.com/2025/08/30/c-14-will-change-how-you-code-heres-why/

19.09.2025 06:00 👍 3 🔁 2 💬 0 📌 0
Extension members (instance and static)

Extension members (instance and static)

In C# 14, you can now declare extension properties, indexers, and even static extension members on a type.
#dotnet #csharp #dotnet10
roxeem.com/2025/08/30/c...

18.09.2025 08:35 👍 1 🔁 1 💬 0 📌 0

Lucky you! Hope nothing broke 😉

13.09.2025 17:34 👍 0 🔁 0 💬 1 📌 0
Post image

To all the software developers and problem solvers: Happy #ProgrammersDay! 🎉

13.09.2025 17:33 👍 0 🔁 0 💬 0 📌 0
Preview
Performance Improvements in .NET 10 - .NET Blog Take a tour through hundreds of performance improvements in .NET 10.

That’s the .NET 10 perf story. Now go and read Stephen Toub's yearly novel to understand the juicy parts 😉
devblogs.microsoft.com/dotnet/perfo...

13.09.2025 11:02 👍 0 🔁 0 💬 0 📌 0

🪞 Code Cloning & Specialization
JIT duplicates code paths:
• Fast path = 1 length check
• Fallback = full safety
Now works for spans & foreach try/finally. #dotnet

13.09.2025 11:02 👍 0 🔁 0 💬 1 📌 0

📏 Bounds‑Check Elimination
Smarter JIT removes redundant checks using constants, merged assertions, switch‑case analysis & span patterns. Smaller code, faster loops. #dotnet

13.09.2025 11:02 👍 0 🔁 0 💬 1 📌 0

🔍 Devirtualization
Array interface calls (IList, IEnumerable) now devirtualize. Loops & LINQ ops run up to 70% faster. Dynamic PGO + extra inlining = even more speed. #dotnet

13.09.2025 11:02 👍 0 🔁 0 💬 1 📌 0

🗑 JIT Deabstraction + Stack Allocation
Escape analysis now stack‑allocates more objects, delegates, arrays & spans.
Fewer heap allocs, less GC pressure, up to 66% faster in common patterns. #dotnet

13.09.2025 11:02 👍 0 🔁 0 💬 1 📌 0

🚀 .NET 10 RC1 is here, and it’s time for another Stephen Toub novel. But to summarize, this is what has changed:
#dotnet

13.09.2025 11:02 👍 0 🔁 0 💬 1 📌 0
Preview
Capture .NET Memory Dump on Linux | Microsoft Community Hub Collecting memory dumps is a crucial part of diagnosing and troubleshooting application issues on Linux machines. Microsoft suggests three primary tools for...

Capture .NET Memory Dump on Linux.

buff.ly/gb5WjhI

#dotnet #linux #debugging #iis #memory

03.09.2025 15:01 👍 4 🔁 2 💬 0 📌 0
Preview
Performance Improvements in .NET 10 - .NET Blog Take a tour through hundreds of performance improvements in .NET 10.

Set aside a week and read this: Performance Improvements in .NET 10. #dotnet

devblogs.microsoft.com/dotnet/perfo...

10.09.2025 19:57 👍 9 🔁 2 💬 1 📌 0