- DotNetNews
- Posts
- The .NET News Daily Issue #51
The .NET News Daily Issue #51
Your Daily Dose of .NET Insights, Tools, and Trends
Tuesday—the middle child of the week that somehow demands introspection while whispering promises of productivity. As seasoned .NET developers, you know the elegance lies in the details, much like the way an unappreciated line of code quietly transforms chaos into functionality. Today, as we delve into our treasure trove of articles, let’s embrace that creative genius lurking within to turn mundane syntax into software symphonies worthy of a standing ovation. Shall we?
Today’s Articles
Trace sampling in SerilogTracingSampling in SerilogTracing is taking shape. If you haven’t heard of SerilogTracing, that’s not surprising - it’s a brand new project launched in January 2024. But, we’ve reached 250k downloads of the ... https://nblumhardt.com/2024/10/sampling-in-serilog-tracing/ |
Unit Testing with C# and .NET:The Complete GuideA C# and .NET guide to unit testing: setting up, writing tests, and using MSTest, NUnit, and xUnit to improve your code Continue reading on Medium » https://medium.com/@scand.com/unit-testing-with-c-and-net-the-complete-guide-273e960ead75 |
Supercharging .NET Collections with Span and MemoryExtensionsThis article discusses optimizing code efficiency in .NET using Span and MemoryExtensions for collection operations. It highlights significant performance improvements in common tasks such as finding,... https://dotnettips.wordpress.com/2024/10/15/supercharging-net-collections-with-span-and-memoryextensions/ |
Server-Sent Events in ASP.NET Core for Real-Time Push NotificationsThis guide covers the basics of SSE, setting up a server-client connection, creating event-driven applications for continuous data updates, and enhancing user experience with live notifications. https://www.c-sharpcorner.com/Blogs/serversent-events-in-asp-net-core-for-realtime-push-not |
Implementing an LRU Cache in C#This article explores the concept of caching, outlines the algorithm's mechanics, and provides step-by-step guidance on building an efficient LRU Cache using C# collections. https://www.c-sharpcorner.com/article/implementing-an-lru-cache-in-c-sharp/ |
Safety and simplicity with LINQ: Working with the result pattern - Part 2In this post I show how to clean up unreadable Switch()-based result pattern code using LINQ query syntax, giving both readability and safety https://andrewlock.net/working-with-the-result-pattern-part-2-safety-and-simplicity-with-linq/ |
Methods to Defend Against SQL Injection AttacksSQL Injection (SQLi) is a serious security vulnerability that allows attackers to execute arbitrary SQL code on a database. This can lead to unauthorized access, data breaches, and even complete syste... https://www.codeproject.com/Articles/5389985/Methods-to-Defend-Against-SQL-Injection-Attacks |
Mapster: A Lightweight and Efficient Object Mapper for C#Mapster vs AutoMapper: Choosing the Right Object Mapper for Your C# Project Continue reading on Medium » https://medium.com/@h5game/mapster-a-lightweight-and-efficient-object-mapper-for-c-dd5651904d7f |
What’s new in System.Text.Json in .NET 9An overview of all new .NET 9 features in System.Text.Json for developers. https://devblogs.microsoft.com/dotnet/system-text-json-in-dotnet-9/ |
Unit Test in C# (Moq 4 and NUnit)Unit testing is a cornerstone of reliable software development, especially in environments where code interacts with multiple components… Continue reading on Towards Dev » https://softinbit.medium.com/unit-test-in-c-moq-4-and-nunit-c2bd37a6a8fa |
Installing Azurite as a Windows Service: Quick GuideA quick guide on how to install Azurite emulator as a Windows service using NSSM tool Continue reading on Level Up Coding » https://levelup.gitconnected.com/installing-azurite-as-a-windows-service-quick-guide-96e85fe628e9 |
Harnessing C# Delegates: Invoking Methods Across Multiple ClassesLearn how delegates act as function pointers in object-oriented programming, enabling flexible method invocation, enhancing code reusability, and promoting clean architecture in C# applications. https://www.c-sharpcorner.com/blogs/harnessing-c-sharp-delegates-invoking-methods-across-multiple-classes2 |
Decoding .NET8: Unveiling Cloud-Native ObservabilityMaking .NET a “by default, out of the box observable platform” Continue reading on Medium » https://logz.io/blog/decoding-net8-dotnet-aspire-stack-cloud-native-observability/ |
Ditching Exceptions for Performance: Embracing the Result Pattern in .NET 8 Web APIsAs .NET developers, we’re constantly seeking ways to optimize our applications for better performance and scalability. One area that often… Continue reading on Medium » https://mak-thevar.medium.com/ditching-exceptions-for-performance-embracing-the-result-pattern-in-net-8-web-apis-18d9e422a75d |
Using Azure AI Services in .NETIntroduction Continue reading on Medium » https://medium.com/@aschultzme/using-azure-ai-services-in-net-2f9ea7aafc15 |
Overcoming Apprehensions: Why .NET Minimal APIs Are the FutureIn the rapidly evolving world of .NET development, the emergence of Minimal APIs has generated significant excitement — and a hint of… Continue reading on Medium » https://medium.com/@appsfactory/overcoming-apprehensions-why-net-minimal-apis-are-the-future-38c9275e6e26 |
Middleware and Filters in ASP.NET CoreA Comprehensive Guide to Middleware and Filters in ASP.NET Core: With Real-World Examples Continue reading on Medium » https://malshikay.medium.com/16455a84ff2f |