Home Archive GC internals, EF Core pitfalls, and API patterns – .NET News Daily Issue #137 (Feb 20, 2025)

Editor's note

I kept this issue intentionally mixed: low-level runtime material sits next to practical API and data-access pieces. The garbage collector deep dive and the EF Core mistakes article are the two I’d flag first for most .NET teams, because they both pay off in day-to-day code quality.

GC internals, EF Core pitfalls, and API patterns

Ah, Thursday—a day that stands proudly confident, sandwiched between the week's end in sight and the toil already endured. It's the .NET developer's sweet spot for innovation, where experience meets inspiration like a finely-tuned car accelerating seamlessly on an open road. As you navigate through today's collection of cutting-edge articles, let your seasoned instincts guide you toward that next breakthrough. Now, buckle up and savor the ride through the latest and greatest in .NET.

Today's Articles

Garbage Collector in .NET: Principles and Architecture

https://medium.com/@ljubomirbacovic/garbage-collector-in-net-principles-and-architecture-d1550c58ab3d

If you ever came in touch with .NET, you heard terms like “managed code” and “Common Language Runtime” (or CLR). What makes code managed…

Article preview

Understanding Constructor Chaining In C#

https://www.csharp.com/blogs/understanding-constructor-chaining-in-c-sharp

This article will show you the concept of Constructor Chaining In C# and cover their definitions, usage, and behavior in various scenarios, with examples to clarify these concepts.

Article preview

Database first approach with DotNet Core

https://ravindradevrani.medium.com/database-first-approach-with-dotnet-core-7a62a3e8f008

I have used database first approach in the .NET Framework 4.X. But It is the first time I am trying to use Db First approach in the .NET… Continue reading on CodeX »

Article preview

Understanding Random.Next() in C#: Generating Random Numbers Efficiently

https://medium.com/@malarsharmila/understanding-random-next-in-c-generating-random-numbers-efficiently-67aaa69bf4fd

Introduction Continue reading on .Net Programming »

Article preview

.NET Apps with DeepSeek R1 Today

https://medium.com/@rs4528090/net-apps-with-deepseek-r1-today-3cfbe4daf2a4

Build the next generation of intelligent applications. Continue reading on CodeX »

Article preview

Mastering .NET Interoperability: Connecting .NET Framework and .NET Core with Javonet

https://medium.com/@marketing_23529/mastering-net-interoperability-connecting-net-framework-and-net-core-with-javonet-1ca99aeb8bf0

Introduction

Article preview

CQRS and Mediator Pattern in a .NET 8 Web API

https://www.csharp.com/article/cqrs-and-mediator-pattern-in-a-net-8-web-api/

This article explains how to implement CQRS and Mediator patterns in a .NET 8 Web API. It covers the benefits of separating read and write operations with CQRS, and how the Mediator pattern reduces de...

Article preview

Building RESTful APIs with ASP.NET Core: Best Practices

https://www.csharp.com/article/building-restful-apis-with-asp-net-co-best-practices/

This article covers the best practices for API design, security, performance optimization, and error handling to help you create robust web services. Perfect for developers looking to master API devel...

Article preview

Why I prefer Laravel over .NET

https://medium.com/@witkowski.bartlomiej1/why-i-prefer-laravel-over-net-36a93af8bbc9

It is my real life story, not next AI generated comparison..

Article preview

A Better .NET SQL Builder: KnightMoves.SqlObjects

https://www.csharp.com/article/a-better-net-sql-builder-knightmoves-sqlobjects/

KnightMoves.SqlObjects is a .NET SQL builder that is built entirely on objects, making it orders of magnitude more powerful and feature-rich than any string manipulating SQL builder could ever be. If ...

Article preview

Entity Framework Core Done Right: Avoid These Common/Critical Mistakes

https://medium.com/@tanjeerbinhaque/entity-framework-core-done-right-avoid-these-common-critical-mistakes-99b0bb9649d5

As a .NET developer, Entity Framework is our very own thing. Entity Framework (EF) is an Object-Relational Mapper (ORM) for .NET…

Article preview

Building a Robust Password Validator in C#

https://medium.com/@davidsilwal/building-a-robust-password-validator-in-c-df27d46de99b

A strong password is the foundation of any secure system. To help users create passwords that meet your security standards, implement a…

Article preview

How to Allow or Use or Display Angle Brackets <> in HTML Code Tag

https://www.csharp.com/blogs/how-to-allow-or-use-or-display-angle-brackets-in-html-code-tag

How to allow or use Angle Brackets <> in HTML code tag | Angle Brackets <> not display at runtime in HTML Code tag | HTML.

Article preview

Why We Use C#/.NET and C++ for Instrument Control

https://medium.com/@kjx_automations/why-we-use-c-net-and-c-for-instrument-control-384756db74a4

John Duddy - KJX Automations, LLC

Article preview

Learning C#: Debugging With Breakpoints

https://medium.com/@MJQuinn/learning-c-debugging-with-breakpoints-68f2a4fe158a

Chapter 1 Section 5

Article preview

Comparing Collections Using Except and Intersect in C#

https://www.csharp.com/blogs/comparing-collections-in-c-sharp-using-except-and-intersect-to-find-matched-and-unmatched-elements

Check selected elements in one collection are exist in another collection or not in c#.

Article preview

Difference Between Break and Continue Statement in C#

https://www.csharp.com/blogs/difference-between-break-and-continue-statement-in-c-sharp

This tutorial will show you the difference between Break and Continue Statement in C# and cover their definitions, usage, and behavior in various scenarios, with examples to clarify these concepts.

Article preview

Understanding the `required` Keyword in .NET: Eliminating Nullability Doubts

https://medium.com/@jry157/understanding-the-required-keyword-in-net-eliminating-nullability-doubts-052d052041e9

One of the persistent challenges in .NET development has been handling nullability — ensuring that required properties are properly…

Article preview

How To Be Productive As A C# Developer

https://medium.com/write-a-catalyst/how-to-be-productive-as-a-c-developer-dd0701302321

I still remember when I first sat down to write C# code. Continue reading on Write A Catalyst »

Article preview

Jasen's take on today's picks

Garbage Collector in .NET: Principles and Architecture

A solid runtime refresher on how GC really works under the hood, which helps when you’re chasing memory pressure or latency spikes.

Understanding Constructor Chaining In C#

Constructor chaining is basic but easy to misuse; this is a good reset for cleaner object initialization.

Database first approach with DotNet Core

Database-first still matters in brownfield work, and this one should help teams wiring existing schemas into .NET Core.

Understanding Random.Next() in C#: Generating Random Numbers Efficiently

Random.Next() seems simple until you need correctness or repeatability; worth a read for anyone building tests or simulations.

.NET Apps with DeepSeek R1 Today

DeepSeek in .NET is timely for teams experimenting with local or hosted AI integrations without rewriting their stack.

Mastering .NET Interoperability: Connecting .NET Framework and .NET Core with Javonet

Interop between .NET Framework and .NET Core remains relevant in enterprise migration work, especially when old code can’t move all at once.

CQRS and Mediator Pattern in a .NET 8 Web API

CQRS plus MediatR in a .NET 8 Web API is a familiar pattern done in a practical context, useful for teams standardizing request handling.

Building RESTful APIs with ASP.NET Core: Best Practices

This REST API guide is a broad best-practices pass, good for anyone sanity-checking naming, validation, and HTTP semantics.

Why I prefer Laravel over .NET

A contrarian opinion piece is always worth scanning, even when you disagree, because it exposes where your own platform tradeoffs are weakest.

A Better .NET SQL Builder: KnightMoves.SqlObjects

A SQL builder article is the kind of tooling post that can save time if you want more structure than hand-written strings.

Entity Framework Core Done Right: Avoid These Common/Critical Mistakes

EF Core mistake hunting is always useful; these are the sorts of issues that quietly create bugs, performance problems, and confusion.

Building a Robust Password Validator in C#

Password validation is a small topic with real security implications, and this article looks aimed at getting the rules right.

How to Allow or Use or Display Angle Brackets <> in HTML Code Tag

An HTML escaping reminder sounds simple, but it prevents a surprising number of broken views and code samples.

Why We Use C#/.NET and C++ for Instrument Control

Instrument control is a niche but important reminder that .NET still shows up in serious hardware and automation scenarios.

Learning C#: Debugging With Breakpoints

Breakpoints remain one of the fastest ways to learn and diagnose behavior in C#, especially for newer developers.

Comparing Collections Using Except and Intersect in C#

Except and Intersect are great tools for comparing sets, and this should help you write clearer collection logic.

Difference Between Break and Continue Statement in C#

Break versus continue is entry-level material, but these concepts still trip people up in real loops and batch processing.

Understanding the `required` Keyword in .NET: Eliminating Nullability Doubts

The required keyword deserves more attention now that nullability is a first-class concern in modern .NET codebases.

How To Be Productive As A C# Developer

A productivity piece can be hit-or-miss, but the best ones usually surface habits that cut friction across the whole day.

Related issues

📬 Get daily .NET content delivered to your inbox