Advanced .NET Dependency Injection Techniques
Go beyond the basics of dependency injection in .NET. This guide covers advanced topics like keyed services, factory registrations, and managing service lifetimes for complex scenarios.
Read moreGo beyond the basics of dependency injection in .NET. This guide covers advanced topics like keyed services, factory registrations, and managing service lifetimes for complex scenarios.
Read moreA beginner's guide for .NET developers on how to containerize an ASP.NET Core application using Docker, covering the Dockerfile, build process, and running the container.
Read moreLearn how to implement powerful structured logging in your .NET applications using Serilog, with examples for enriching log events and writing to sinks like the console and files.
Read moreElevate your testing game by learning best practices for writing clean, maintainable, and effective unit tests in .NET using popular frameworks like xUnit and Moq.
Read moreA practical guide to understanding and using the built-in dependency injection container in .NET, covering service lifetimes, constructors, and best practices.
Read moreMaster the powerful and flexible configuration system in .NET. Learn how to use appsettings.json, environment variables, user secrets, and the options pattern to build robust applications.
Read moreExplore how to build lightweight, high-performance serverless APIs using .NET 8's Minimal API framework and the Amazon.Lambda.AspNetCoreServer package on AWS Lambda.
Read moreA look at the key features introduced in C# 11 with the release of .NET 7, including raw string literals, generic math, and required members, and how they improve the developer experience.
Read moreLearn the power of Docker multi-stage builds to create smaller, more secure, and more efficient container images for your .NET applications. A crucial best practice for modern containerization.
Read moreAn introduction to C# records. Learn what they are, why they are useful for creating immutable data types, and how their concise syntax can make your code cleaner and more robust.
Read moreMaster the powerful and flexible configuration system in .NET. This guide covers the modern approach using appsettings.json, environment variables, user secrets, and the options pattern.
Read moreStop creating new HttpClient instances. This guide explains the problems with traditional HttpClient usage and shows how to use IHttpClientFactory in .NET to create resilient and performant HTTP clients.
Read moreUnlock the power of LINQ (Language-Integrated Query) in C#. This guide covers the essential methods like Where, Select, OrderBy, and GroupBy to help you write more declarative and readable data manipulation code.
Read moreA practical guide to asynchronous programming in C#. Demystify the async and await keywords and learn how they work together to write responsive, non-blocking code.
Read moreA practical guide to building lightweight, high-performance APIs in .NET 7 using the Minimal APIs framework. Learn how to get rid of the boilerplate and focus on your endpoints.
Read moreA clear and practical guide to the three main service lifetimes in .NET dependency injection: Transient, Scoped, and Singleton. Understand the difference and when to use each one.
Read moreAn introduction to IAsyncEnumerable<T> and async streams in C#. Learn how to use `yield return` with `async` methods to create and consume streams of data asynchronously, improving performance and reducing memory usage.
Read moreAn introduction to the built-in dependency injection (DI) container in .NET. Learn what DI is, why it's important, and how to register and inject services in your ASP.NET Core applications.
Read moreAn introduction to generics in C#. Learn how to use generic classes, methods, and interfaces to write flexible, reusable, and type-safe code that avoids casting and boxing.
Read moreAn introduction to Minimal APIs, the new, streamlined way to build web APIs in .NET 6. Learn how to create a fully functional API with just a few lines of code, and see how it compares to the traditional controller-based approach.
Read moreTroubleshooting a common Entity Framework Core migration error
Read moreLearn how to build, deploy, and optimize AWS Lambda functions with .NET 6 and C#. From cold starts to dependency injection, master serverless development with .NET.
Read moreAn introduction to Entity Framework Core (EF Core), the standard ORM for .NET. Learn how to set up a DbContext, define entities, and use LINQ to query a database without writing raw SQL.
Read moreExplore the major new features in C# 10, including global usings, file-scoped namespaces, and record structs. Learn how these changes can make your .NET code cleaner and more concise.
Read moreA clear and practical comparison of interfaces and abstract classes in C#. Understand the key differences and learn when to use each one to write better, more flexible object-oriented code.
Read moreA look back at the defining technology trends of 2021. From the unification of .NET with .NET 6 to the dominance of GitHub Actions and the rise of serverless containers, we review a year defined by the maturation of development platforms.
Read moreAn introduction to the new global using directives feature in C# 10. Learn how this feature can help you reduce repetitive using statements and clean up the top of your C# files.
Read moreAn introduction to the new Minimal APIs feature in .NET 6. Learn how to build fast, lightweight web APIs with just a few lines of code, and see how it compares to the traditional controller-based approach.
Read moreAn overview of the final release of .NET 6, a Long-Term Support (LTS) release packed with performance improvements, new features like Minimal APIs and Hot Reload, and the official launch of .NET MAUI.
Read moreA summary of the most important best practices for writing asynchronous code in C# with async and await. Learn how to avoid common pitfalls like deadlocks and how to write clean, efficient async code.
Read moreAn early look at the exciting new features coming in .NET 6 and C# 10. From Minimal APIs and Hot Reload to global usings and file-scoped namespaces, we explore the next evolution of the .NET platform.
Read moreA guide to the ValueTask<T> struct in C#. Learn how it can be used as a lightweight alternative to Task<T> to improve performance and reduce allocations in high-throughput, asynchronous scenarios.
Read moreA foundational guide to interfaces in C#. Learn what an interface is, how it differs from a class, and why interfaces are a crucial tool for building flexible, loosely coupled, and testable applications.
Read moreA guide to the newly released AWS Lambda Powertools for .NET. Learn how this suite of utilities can help you implement serverless best practices for structured logging, custom metrics, and distributed tracing.
Read moreA guide to attributes in C#, a powerful mechanism for adding declarative metadata to your code. Learn how attributes work and see common examples from data validation to testing frameworks.
Read moreAn introduction to Blazor WebAssembly, the revolutionary .NET framework for building interactive, client-side web UIs with C#. Learn how it works and how it compares to the server-side Blazor hosting model.
Read moreAn introduction to NuGet, the package manager for .NET. Learn what NuGet is, how it helps you manage dependencies, and how to use it to add third-party libraries to your .NET projects.
Read moreAn introduction to C# 9's top-level statements feature, which allows you to write simple programs without the ceremony of a Program class and a Main method. Learn how it simplifies code and makes C# more beginner-friendly.
Read moreA look at the significance of .NET 5, the first major step in Microsoft's journey to unify the .NET ecosystem. Learn about its key goals, performance improvements, and what it means for the future of .NET development.
Read moreAn introduction to C# 9 records, a new reference type that provides a simplified syntax for creating immutable data objects. Learn how records can help you reduce boilerplate and write more robust, data-centric code.
Read moreA comparison of two of the most popular data access technologies in the .NET world: the full-featured ORM Entity Framework Core and the high-performance micro-ORM Dapper. Learn about their key differences and when to choose one over the other.
Read moreA deep dive into the major features introduced in C# 9 with .NET 5, including records, top-level statements, and improved pattern matching. Learn how these additions can make your code more concise and expressive.
Read moreA guide to the classic string.Format method in C#. Learn how to use this powerful method with indexed placeholders and format specifiers to create complex, formatted strings.
Read moreA developer's guide to gRPC, the modern, high-performance RPC framework. Learn how to build a simple gRPC service in ASP.NET Core, define a service with Protocol Buffers, and see how it compares to REST.
Read moreA beginner's guide to building your first REST API with ASP.NET Core. Learn about the basic project structure, controllers, and how to use dependency injection to build clean, testable APIs.
Read moreAn early look at the ambitious vision for .NET 5. Learn about Microsoft's plan to unify the .NET ecosystem into a single platform and what it means for the future of building applications with C#.
Read moreA deep dive into the async and await keywords in C#. Learn how they work together to simplify asynchronous programming, improve application responsiveness, and increase scalability.
Read moreA clear explanation of the difference between the two most important .NET CLI commands: `dotnet build` and `dotnet publish`. Learn what each command does and when you should use them.
Read moreA practical guide for .NET developers on how to get started with Docker. Learn how to containerize an ASP.NET Core application, understand the Dockerfile, and use multi-stage builds to create small, secure production images.
Read moreA foundational guide to the 'for' loop in C#, a fundamental control flow statement for executing a block of code a specific number of times. Learn the classic syntax and how it gives you precise control over iteration.
Read moreA look back at the defining technology trends of 2019. From the landmark release of .NET Core 3.0 to the dominance of Kubernetes and the continued rise of serverless, we review a year defined by the maturation of cloud-native technologies.
Read moreA foundational guide to the 'struct' keyword in C#. Learn how structs are used to create lightweight value types and understand the key differences between a struct and a class.
Read moreAn overview of the official release of .NET Core 3.0. We explore the final features of this landmark release, including support for WPF and Windows Forms, C# 8.0 with nullable reference types, and first-class support for gRPC.
Read moreA deep dive into the most significant feature of C# 8.0: nullable reference types. Learn how this new feature aims to eliminate null reference exceptions by changing how the language treats null.
Read moreAn early look at the major new features coming in .NET Core 3.0. From support for WPF and Windows Forms to the introduction of C# 8.0 with nullable reference types, we explore what makes this one of the most anticipated .NET releases ever.
Read moreAn introduction to LINQ (Language-Integrated Query) in C#. Learn how to use its powerful and expressive syntax to query in-memory collections, databases, and other data sources.
Read moreA beginner's guide to ASP.NET Core, Microsoft's modern, open-source, and cross-platform framework for building web applications and services. Learn about its key features and what makes it a great choice for web development.
Read moreA look back at the defining technology trends of 2018. From the massive performance gains in .NET Core 2.1 to the developer-friendly features in Python 3.7, we review a year defined by a focus on performance and developer productivity.
Read moreA beginner's guide to unit testing in .NET Core using the popular xUnit.net framework. Learn how to set up a test project, write your first tests with Facts and Theories, and follow the Arrange-Act-Assert pattern.
Read moreA look at the small but useful new features introduced in C# 7.3, including tuple equality, enum constraints, and performance improvements for working with `in` parameters.
Read moreAn overview of the major new features and improvements in .NET Core 2.1, a landmark Long-Term Support (LTS) release. We explore the massive performance gains, the introduction of global tools, and new features like SignalR.
Read moreA foundational guide to arrays in C#. Learn how to use this fundamental data structure to store a fixed-size, sequential collection of elements of the same type.
Read moreA beginner's guide to .NET Core, Microsoft's open-source, cross-platform successor to the .NET Framework. Learn about its key design principles and why it's the future of .NET development.
Read moreAn introduction to extension methods in C#. Learn how to use this powerful feature to add new methods to existing types without creating a new derived type, recompiling, or otherwise modifying the original type.
Read moreAn overview of the official release of ASP.NET Core 2.0. Learn about the major improvements, including the massive API expansion with .NET Standard 2.0 and the new Razor Pages model, which make the framework easier to use than ever.
Read moreAn early look at the major improvements coming in .NET Core 2.0. We explore the massive expansion of the API surface area with .NET Standard 2.0 and other features that promise to make .NET Core easier to use than ever.
Read moreA guide to the major new features introduced in C# 7.0, including tuples and deconstruction, pattern matching, and local functions. Learn how these features can make your C# code more concise and expressive.
Read moreA beginner's guide to the C# programming language. Learn about its key features, what it's used for, and walk through the basic syntax of variables, data types, and functions.
Read moreA beginner's guide to Entity Framework Core 1.0, the new, cross-platform Object-Relational Mapper (ORM) for .NET Core. Learn how to use it to work with databases using .NET objects instead of raw SQL.
Read moreA beginner's guide to the Model-View-Controller (MVC) pattern in ASP.NET Core. Learn how MVC helps you build well-structured, testable web applications by separating concerns into three distinct roles.
Read moreCelebrating the landmark 1.0 release of .NET Core, ASP.NET Core, and Entity Framework Core. This is the official arrival of a cross-platform, open-source, and modular .NET for the modern era of software development.
Read moreAn early look at the major changes in .NET Core Release Candidate 2 (RC2). We explore the shift from DNX to the new dotnet CLI and the evolution of the project format, which brings us closer to the final 1.0 release.
Read moreAn early look at .NET Core, Microsoft's radical new vision for a modular, cross-platform, and open-source .NET framework. Learn about the core principles behind this groundbreaking new platform.
Read more