"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.
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.
General Performance Tip: Type Conversion
This article explores type conversion in programming, comparing the traditional syntax with the newer "as" keyword in .NET. While the "as" keyword improves code readability, benchmark results suggest that the conventional method is slightly more performant, advising developers to stick with traditional type conversion unless significant performance improvements are observed with the "as" keyword.
Reference Type & Structure Performance: Constant vs. Read-only Property
This content discusses the performance of using a constant vs. a read-only property.
String Performance: Checking for a Character
The article compares two methods of checking for the presence of a specific character in a string in C#. Benchmark results reveal that using a character in the search is 3.57 times more efficient than using a string, and Contains() outperforms StringComparison.Ordinal and StringComparison.OrdinalIgnoreCase in terms of speed.
dotNetDave Rocks The Austin .NET User Group (2024)
The dotNetDave No Rest for the Wicked World Tour is coming to the Austin .NET User Group in Texas on May 9th. This session will focus on code and app performance for Microsoft .NET, covering efficient code execution and techniques for minimizing memory footprint. Watch the live session and access related resources to optimize code performance.
Code It Any Way You Want: Constants vs. Read-only Fields
The article discusses best practices for checking strings for null in coding. It outlines three common methods: using == null, is null, or string.IsNullOrEmpty().
Collection Performance: Leveraging LINQ MAXBy() and MINBy() for Efficient and Readable Code
The article explores the usage of LINQ's MinBy() and MaxBy() methods, which efficiently return the objects with the minimum and maximum values in a sequence based on a specified key selector function.
Rockin’ the Code World Season 4: Special Guest Dr. Rolando Masís-Obando
On Saturday, May 25th, 2024, at 10:00 PST, tune in to C# Corner TV for show #102 featuring Dr. Rolando Masís-Obando, a Neuroscientist, Filmmaker, and Entrepreneur. The interview will delve into the future of AI/Tech.
Coding Faster with dotNetTips.com Spargine 8: May 2024 Release
Spargine 8 (v2024.8.5.1) was released on May 5th, 2024, offering NuGet packages for .NET 8. This update includes new methods, benchmarks, and unit tests, integrating speed enhancements informed by benchmark tests outlined in the 4th edition of Rock Your Code. Notably, it introduces the CopyFile method in the FileHelper class and performance improvements in various methods. You can find the performance data on GitHub. Contributing to these projects is encouraged. Check out the GitHub release page for more information.
TeenSaver: Support The Kids In your Life Who have never Seen a Screensaver
This spoof commercial aims to raise awareness about teenagers who have never seen a screensaver.
You must be logged in to post a comment.