Rock Your Code: Code & App Performance for Microsoft .NET (5th Edition)

The fifth edition of David McCarter's book, "Röck Yöur Cöde: Code & App Performance for Microsoft .NET," is now available on Amazon. It offers practical techniques for enhancing .NET application performance, including coding patterns, memory insights, and benchmarking. This definitive guide is essential for modern .NET developers aiming for speed and scalability.

Rock Your Code: Coding Standards for Microsoft .NET (20th Anniversary Edition)

The 20th Anniversary Edition of Rock Your Code: Coding Standards for Microsoft .NET, authored by David McCarter, is now available on Amazon. This comprehensive guide offers updated standards for .NET 10, best practices, and expert insights, making it essential for software engineers aiming for improved code quality and performance over two decades.

Rock Your Code: Code & App Performance for Microsoft .NET (4th Edition)

"Rock Your Code: Code & App Performance for Microsoft .NET" is a comprehensive guide that emphasizes the importance of optimizing code performance for enhanced user experience and backend efficiency. With practical insights and example code, developers learn essential practices for maximizing the performance of their business applications within the Microsoft .NET framework. From string manipulation to leveraging source generators, this edition covers a wide range of topics, including new chapters on code analysis and benchmark testing. Written for developers using Microsoft .NET 8 and Visual Studio 2022, this book offers timeless principles applicable across different versions of .NET, ensuring relevance and utility in any environment.

String Performance: Comparing Strings with Globalization

In the String Performance chapter of the code performance book, the author demonstrates the usage of string.Compare() with StringComparison. Benchmark results are provided, along with a recommendation to use cultures or ordinals based on the strings being compared. The chapter also touches on setting up EditorConfig for dotnet_diagnostic.CA1862.

Rock Your Code: Coding Standards for Microsoft .NET (8th Edition)

The 8th edition of the book, Rock Your Code: Coding Standards for Microsoft .NET, is available on Amazon. It consolidates Microsoft .NET coding standards and provides supplementary directives. Drawing insights from Microsoft’s code inspection tools, the book covers topics such as project setup, naming standards, class design, coding style, and more. The book's purpose is to facilitate superior code quality and swift integration of new team members. It's designed for use with Visual Studio 2022, C#, and .NET 8.

Real World Coding Issues: Part 3 – Design, Diagnostics, and Other Common Code Issues

The article discusses real-world coding issues encountered in a contract project. Part 3 covers common coding issues related to design, diagnostics, and other areas, such as globalization, code duplication, and Linux-based development challenges. It emphasizes the importance of code quality, performance, and prioritizing code reviews to ensure a maintainable and efficient solution.

Globalizing Strings in Microsoft .NET C# with the Multilingual App Toolkit

Throughout the author's career, the significance of supporting various spoken languages and locales in applications and services is emphasized. The process of globalizing strings using the .NET team's Multilingual App Toolkit and the subsequent translation process using the Azure Translator are detailed, providing efficient and cost-effective solutions for internationalization.

Rock Your Code: Code & App Performance for Microsoft.NET – 3rd Edition

I am announcing the 3rd edition of my book titled Rock Your Code: Code & App Performance for Microsoft .NET, now available on Amazon. I worked on this book for a big chunk of 2022 so I hope that you and your team will find it useful.

dotNetDave Rocks the C# Corner Conference 2022

The For Those About to Code: Worldwide Tour 2022 will land in Delhi, India on October 14th - 15th at the C# Corner Conference 2022!

Internationalization and Localization Performance: Collection Count() & Any() with Predicate

In this article, I will show you how to properly use Any() or Count() with collections taking globalization into account. Updated February 2023.