Skip to main content
SEMastery

Fundamentals

Explore fundamentals topics and best practices in the .NET ecosystem.

Level:
33 articles
beginner

8 Tips to Write Clean Code in C# and .NET

Learn 8 simple, beginner-friendly tips to write clean C# and .NET code with clear names, small methods, good error handling, and easy-to-read structure.

12 minclean code
beginner

SOLID Principles in C# and .NET: A Beginner-Friendly Guide

Learn the 5 SOLID principles in C# and .NET with simple words, real-life examples, diagrams, and clean code you can copy and try yourself today.

14 minSOLID
intermediate

Strongly Typed IDs in .NET: A Safer Way to Identify Entities

Learn how strongly typed IDs in .NET stop you from mixing up entity identifiers, catch bugs at compile time, and work cleanly with EF Core.

11 minstrongly typed ids
beginner

Building Semantic Search With Amazon S3 Vectors and Semantic Kernel

A beginner-friendly guide to building semantic search in .NET using Amazon S3 Vectors for cheap storage and Semantic Kernel for embeddings.

13 mindotnet
beginner

What Is Vector Search? A Concise Guide for .NET Developers

A simple, friendly guide to vector search for .NET developers: embeddings, similarity, nearest neighbors, and how to build it with Microsoft.Extensions.VectorData.

11 minvector-search
beginner

How I Implemented Full-Text Search on My Website with EF Core

A simple, beginner-friendly guide to adding fast full-text search to your .NET website using EF Core with SQL Server and PostgreSQL.

12 minfull-text-search
intermediate

How to Scale Long-Running API Requests in .NET: A Beginner's Guide

Learn how to handle slow, long-running API requests in .NET using the 202 Accepted pattern, background services, channels, and status polling.

11 mindotnet
intermediate

Distributed Locking in .NET: Coordinating Work Across Multiple Instances

A friendly beginner guide to distributed locking in .NET. Learn how to stop multiple app instances from doing the same job twice using Redis and SQL Server.

12 mindistributed-systems
beginner

Working With LLMs in .NET Using Microsoft.Extensions.AI

A beginner-friendly guide to calling large language models in .NET with Microsoft.Extensions.AI, using one simple IChatClient interface for any provider.

12 mindotnet
beginner

What Rewriting a 40-Year-Old Project Taught Me About Software Development

Honest lessons from rewriting a 40-year-old legacy app to .NET 10. Why big-bang rewrites fail, the strangler pattern, tests, and respecting old code.

12 mindotnet
beginner

Top 10 Things Every .NET Developer Needs to Do in 2026

A warm, beginner-friendly checklist of the 10 most useful habits and skills every .NET developer should pick up in 2026, with .NET 10 and C# 14.

11 mindotnet
beginner

5 Ways to Check for Duplicates in C# Collections

Learn 5 simple ways to find duplicates in C# collections using HashSet, LINQ Any, GroupBy, and Distinct, with clear examples and a speed comparison.

12 minC#
intermediate

Named Query Filters in EF Core 10: Multiple Query Filters per Entity

Learn named query filters in EF Core 10. Add multiple global filters per entity, turn off just one by name, and keep soft-delete plus multi-tenant code clean.

11 minef-core
intermediate

How to Build a High-Performance Cache in C# Without External Libraries

Build a fast, thread-safe, size-limited LRU cache in C# using only the .NET base class library. Clear diagrams, code, and student-friendly explanations.

14 mincaching
beginner

The Best Way to Validate Objects in .NET (2024 Guide)

A friendly guide to validating objects in .NET: Data Annotations, FluentValidation, IValidatableObject, and the new built-in validation in .NET 10.

11 minC#
beginner

The Urge to Build Something: Turn That Spark Into a Real .NET App

Got the itch to build something? Learn how to turn that urge into a real, finished .NET 10 app with small steps, a tiny first project, and zero fear.

11 mindotnet
beginner

DRY Is the Most Misunderstood Rule in Programming

DRY is not about deleting repeated code. It is about knowledge. Learn the real meaning of Don't Repeat Yourself with simple C# examples.

11 minDRY
beginner

Best Practices for Increasing Code Quality in .NET Projects

Beginner-friendly guide to raising code quality in .NET with analyzers, EditorConfig, nullable types, tests, and CI checks that catch bugs early.

12 mincode quality
beginner

Building Resilient Cloud Applications With .NET

Learn to build resilient cloud apps in .NET with retries, timeouts, and circuit breakers using Polly and Microsoft.Extensions.Resilience.

13 mindotnet
beginner

Top AI Instruments for .NET Developers in 2025

A friendly tour of the best AI tools for .NET developers in 2025: GitHub Copilot, Microsoft.Extensions.AI, Agent Framework, and more.

13 mindotnet
beginner

The Best Way to Map Objects in .NET in 2024 (and Beyond)

Learn the best way to map objects in .NET: manual mapping, Mapperly source generators, and why teams are moving away from AutoMapper after it went commercial.

11 mindotnet
beginner

How to Write Better and Cleaner Code in .NET

A beginner-friendly guide to writing better, cleaner C# and .NET code using clear names, small methods, modern C# 14 features, and simple structure.

11 minclean code
beginner

How to Be a Better Software Engineer in 2023 (A Beginner's Guide)

Simple, beginner-friendly habits to grow as a software engineer: clean code, testing, SOLID, version control, refactoring, and learning the right way.

11 mincareer
beginner

PDF Reporting in .NET With HTML Templates and PuppeteerSharp

A beginner-friendly guide to making PDF reports in .NET for free using HTML templates and PuppeteerSharp, a headless Chromium browser.

12 mindotnet
beginner

How to Start a New .NET Project in 2026: A Beginner's Friendly Guide

A warm, step-by-step guide to starting a new .NET 10 project in 2026 with the dotnet CLI, the right template, and good folder habits from day one.

12 mindotnet
beginner

How to Extract Structured Data From Images Using Ollama in .NET

A beginner-friendly guide to reading text and fields from images using a local Ollama vision model in .NET, returning clean, typed JSON every time.

13 mindotnet
beginner

Flexible PDF Reporting in .NET Using Razor Views

A beginner-friendly guide to making PDF reports in .NET by writing Razor views as HTML and turning them into PDFs with a headless browser.

12 mindotnet
beginner

How I Optimized an API Endpoint to Make It 15x Faster

A simple, step-by-step story of how I made a slow ASP.NET Core API endpoint 15x faster using EF Core projection, AsNoTracking, paging, and indexes.

12 minaspnet-core
beginner

40 Lessons I Learned in 12 Years as a .NET Developer

Forty honest, beginner-friendly lessons from 12 years of .NET work, covering C#, EF Core, testing, deployment, teamwork, and a calm career.

11 mincareer
beginner

Top 15 Mistakes .NET Developers Make and How to Avoid Common Pitfalls

Learn the 15 most common mistakes .NET developers make with async, EF Core, HttpClient, and memory, plus simple fixes you can use today.

11 mindotnet
beginner

How to Sync Google and GitHub Logins to Your Database With Neon Auth for Free

Learn how Neon Auth syncs Google and GitHub logins into your Postgres database for free, with no webhooks, and how to join the data in ASP.NET Core EF Core.

12 mindotnet
beginner

How to Build Production-Ready Projects With Claude Code

A friendly, step-by-step guide to building real, production-ready .NET projects with Claude Code using CLAUDE.md, plan mode, hooks, and subagents.

13 minclaude-code
beginner

6 Steps for Setting Up a New .NET Project the Right Way

A friendly, step-by-step guide to starting a clean .NET 10 project with the right folder layout, central packages, analyzers, EditorConfig, and CI.

12 mindotnet