Best of .NETMarch 2024

  1. 1
    Article
    Avatar of bytebytegoByteByteGo·2y

    EP105: The 12 Factor App

    Learn about the 12 principles of the 12-Factor App, the functionalities of an API gateway, and the evolution of Redis architecture.

  2. 2
    Article
    Avatar of mwaseemzakirWaseem .NET Newsletter·2y

    EP 52 : Best Practices for .NET Projects

    This post discusses best practices for .NET projects, including optimal folder structure, utilizing shared class libraries, organizing constants, installing necessary class libraries, cleaning up Program.cs, setting up a global exception handler, and leveraging tools and strategies for .NET development enhancement.

  3. 3
    Article
    Avatar of watercoolerWatercooler·2y

    -

    The post covers a variety of topics related to dotnet, dotnet core, C#, and web development. It provides recommendations and information on current tech news.

  4. 4
    Article
    Avatar of mwaseemzakirWaseem .NET Newsletter·2y

    EP 51 : Null Object Pattern in C#

    The Null Object Pattern in C# provides a way to handle null values by returning a default object representing null instead of throwing a null exception. It can be used in situations where you want to provide default implementations for methods, simplify code with frequent null checks, or reduce the complexity of handling null references. However, it's important to carefully consider the design and requirements of your application before applying this pattern.

  5. 5
    Article
    Avatar of johnnyreillyJohn Reilly·2y

    Generate a Word document in ASP.NET

    Learn how to generate Word documents in ASP.NET using the Open XML library. Easily create and add content to Word documents in an ASP.NET controller.

  6. 6
    Article
    Avatar of communityCommunity Picks·2y

    Using Inertia with Laravel in 2024

    Learn about Inertia and why you might choose to use it with Laravel in 2024. Discover the benefits of using Inertia, such as avoiding the need to create a separate API, improving performance, and writing all frontend code in JavaScript. Find out how to leverage features like server-side rendering and Inertia forms. Get tips for maximizing the benefits of Inertia, including using Ziggy for routing, using Laravel form requests, and using Inertia middleware to share common data across pages.

  7. 7
    Article
    Avatar of mwaseemzakirWaseem .NET Newsletter·2y

    EP 53 : 8 Tips To Improve EF Core Performance

    Tips to improve EF Core performance include using projections, async methods, compiled queries, avoiding non-cancellable queries, using database context pool, using IQueryable for multiple filters, using AsNoTracking for read-only operations, and implementing pagination.

  8. 8
    Article
    Avatar of milanjovanovicMilan Jovanović·2y

    Horizontally Scaling ASP.NET Core APIs With YARP Load Balancing

    Learn how to implement load balancing and horizontal scaling for ASP.NET Core APIs using YARP (Yet Another Reverse Proxy). Improve the performance and scalability of your web applications.

  9. 9
    Article
    Avatar of codemazeCode Maze·2y

    Best Practices for Logging With Serilog

    Learn about best practices for logging in .NET with Serilog, including avoiding the static Logger class, configuring Serilog from appsettings.json, and using built-in event log enrichers.

  10. 10
    Article
    Avatar of hanselmanScott Hanselman·2y

    Updating to .NET 8, updating to IHostBuilder, and running Playwright Tests within NUnit headless or headed on any OS

    Learn how to update to .NET 8, switch to using IHostBuilder, and run Playwright tests in NUnit in both headless and headed modes on any operating system.

  11. 11
    Article
    Avatar of infoqInfoQ·2y

    ASP.NET Core Updates in .NET 9 Preview 2: Blazor, OIDC, OAuth and Configuring HTTP.sys

    ASP.NET Core in .NET 9 Preview 2 brings updates including Blazor component constructor injection, WebSocket compression for Blazor interactive server components, customizing OAuth and OIDC authorization parameters, and configuring HTTP.sys extended authentication flags.

  12. 12
    Article
    Avatar of collectionsCollections·2y

    Introducing Garnet: A Next-Generation, High-Performance Cache-Store from Microsoft Research

    Introducing Garnet, an open-source, high-performance cache-store from Microsoft Research. Garnet offers strong performance, scalability, and low client latencies compared to other cache-store systems. Built on the latest .NET technology, Garnet is cross-platform and supports multiple programming languages.

  13. 13
    Article
    Avatar of elmahelmah.io·2y

    Mocking HttpClient requests for C# unit tests

    Learn how to mock HttpClient requests for C# unit tests by using a custom HttpMessageHandler.

  14. 14
    Article
    Avatar of codemazeCode Maze·2y

    Introduction to Brighter in .NET

    Learn how to use Brighter in .NET for in-process and out-of-process command processing, implement command handlers, process commands with RabbitMQ, and the advantages of using Brighter in .NET.

  15. 15
    Article
    Avatar of codemazeCode Maze·2y

    Why Do We Use the Virtual Keyword for Properties in EF Core?

    This post explains the use of the virtual keyword for navigation class properties in EF Core and how it relates to lazy loading.

  16. 16
    Article
    Avatar of dotnet.NET Blog·2y

    Get started with .NET 8 and AI using new quickstart tutorials

    Learn how to get started with .NET 8 and AI using new quickstart tutorials. Explore the core concepts and resources for working with OpenAI in .NET. Share your feedback and connect with the team.

  17. 17
    Article
    Avatar of codemazeCode Maze·2y

    How to Use Entity Framework Core Migrations in Production

    This post discusses the different approaches to migrating a production database when using Entity Framework (EF) Core code-first migrations.

  18. 18
    Article
    Avatar of milanjovanovicMilan Jovanović·2y

    Lightweight In-Memory Message Bus Using .NET Channels

    Learn how to build a lightweight in-memory message bus using .NET Channels. Discover the pros and cons of using an in-memory message bus and explore ways to improve its functionality.

  19. 19
    Article
    Avatar of codemazeCode Maze·2y

    Execute the SELECT WHERE NOT EXIST SQL Query Using LINQ

    This article explains how to execute the SELECT WHERE NOT EXISTS SQL query using LINQ in C#. It covers different methods, such as using the Any method, the Join method for Left Anti-Join, and the Contains method. The article also includes a benchmark comparison of these methods.

  20. 20
    Article
    Avatar of codemazeCode Maze·2y

    Automatic Registration of Minimal API Endpoints in .NET

    This article explores different approaches to automatically register Minimal API endpoints in .NET for better structure and readability. It discusses the use of extension methods and reflection for endpoint management.

  21. 21
    Article
    Avatar of codemazeCode Maze·2y

    Fastest Way to Check if a List is in Order in C#

    This post explores different techniques to check if a list is in order in C#. It covers methods using loops, LINQ, and the Task Parallel Library. Performance benchmarks are provided for each method, helping developers choose the best option for their use case.

  22. 22
    Article
    Avatar of codemazeCode Maze·2y

    Difference Between await and Task.Wait in C#

    This post explores the differences between await and Task.Wait in C#, discusses the impact of blocking code on applications, and explains the concept of asynchronous programming.