Best of .NET — March 2024
- 1
- 2
Waseem .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
- 4
Waseem .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
- 6
Community 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
Waseem .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
- 9
- 10
- 11
InfoQ·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
Collections·2yIntroducing 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
- 14
- 15
- 16
- 17
- 18
- 19
Code 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
- 21
Code 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