Issue #169 of the Code Maze weekly.
Check out what’s new this week and enjoy the read.
.NET and C# Top Picks
- Static Fields Are Evil, If Not Coded Correctly [dotnettips.wordpress.com]
A very important article about static fields and how they can affect our code by David McCarter. Static fields can be very dangerous when not used properly so give this one a read, since it’s very interesting and has a real-world anecdote that makes it even more relevant. - Blazor Code Separation – Easily Moving Code to a Code Behind File [www.youtube.com]
When learning from Blazor tutorials, you might encounter the code on the same page as the HTML and Razor. In this video, Tim Corey shows us an easy way to move this code to a separate file since this is better for production apps.
Other Great Reads
- Converting Strings to .NET Objects – IParsable and ISpanParsable [csharp.christiannagel.com]
- Normalize and compare URLs with C# [blog.elmah.io]
- Let’s make our SPA more secure by setting up a .NET BFF with Duende and Auth0 [timdeschryver.dev]
- Performance: The Fastest Way to Use Regular Expressions in Microsoft .NET 7 [dotnettips.wordpress.com]
- Investigating a crash in Enumerable.LastOrDefault with a custom collection [www.meziantou.net]
- Using Application Insights in .NET Desktop Applications [weblog.west-wind.com]
- Dependency Injection with Avalonia UI Apps [khalidabuhakmeh.com]
YouTube
- Power Up Your Presentations with These 3 Visual Studio Code Extensions! [www.youtube.com]
- Build Your First Mobile Application with .NET MAUI Workshop – Part 1 [www.youtube.com]
- Build Your First Mobile Application with .NET MAUI Workshop – Part 2 [www.youtube.com]
- Create a Dashboard – WPF TUTORIALS [www.youtube.com]
- Why Microsoft Made Their New Frozen Collections Slower [www.youtube.com]
- How EF Core 8 Tries to Copy Dapper [www.youtube.com]
- Generic Repository Pattern With EF Core – Why It Sucks [www.youtube.com]
- Saga Pattern For Microservice Architecture With Rebus And RabbitMQ [www.youtube.com]
YouTube Shorts
- What Is The Lock Statement In C#? #shorts [www.youtube.com]
- The Fastest Way To Create Middleware In .NET #shorts [www.youtube.com]
- What Is Fluent Configuration In EF Core? #shorts [www.youtube.com]
- What Are Local Functions In C#? #shorts [www.youtube.com]
- New Guard Clauses In .NET 7 #shorts [www.youtube.com]
- Visual Studio Code Basic operations HotKeys #shorts #vscode [www.youtube.com]
- Visual Studio Code Basic Editing #shorts [www.youtube.com]
- Visual Studio Code Basic Editing 2 #shorts #vscode [www.youtube.com]
- Code Navigation shortcut #shorts #vscode [www.youtube.com]
- Visual Studio Code Basic Editing #vscode #shorts [www.youtube.com]
News & Updates
- .NET April 2023 Updates – .NET 7.0.5, .NET 6.0.16 [devblogs.microsoft.com]
- Announcing .NET 8 Preview 3 [devblogs.microsoft.com]
- ASP.NET Core updates in .NET 8 Preview 3 [devblogs.microsoft.com]
- Announcing .NET MAUI in .NET 8 Preview 3 [devblogs.microsoft.com]
- Check out new C# 12 preview features! [devblogs.microsoft.com]
- NuGet.org Terms of Service Update on Unexpected Behavior and Hate Speech [devblogs.microsoft.com]
Podcasts
- Making a Copilot with Phil Haack [www.dotnetrocks.com]
- Inside Avalonia’s Cross-Platform UI Toolkit and the Quest for Quality Documentation with Mike James [dotnetcore.show]
Other Interesting Articles
- Using Step Functions to Orchestrate a Series of Lambda Functions [nodogmablog.bryanhogan.net]
Programming & Life
- The state of startup funding [blog.pragmaticengineer.com]
- Twitter Open-Sources Recommendation Algorithm [www.infoq.com]
- How Do I Get Side Income as a Developer? [www.youtube.com]
Weekly Dose of Humor
- When I ask the user to show me how he works with the app [thecodinglove.com]
- When I listen to the sales guy listing everything he sold during our team meeting [thecodinglove.com]
- When my boss congratulates me and I copied everything from the Internet [thecodinglove.com]
- When I realize the solution I thought about is actually much more complex than expected [thecodinglove.com]