The post discusses the necessity of implementing equality operators (== and !=) for structures, as they do not have inherent implementations. Providing an example, it highlights the ease of this process using refactoring tools like CodeRush. The author recommends consistently implementing these operators and mentions configuring code analysis in EditorConfig.
Category: .NET Coding Standards
Reference Type & Structure Performance: Override Object Virtual Methods
This content discusses optimizing performance for reference types and structures in .NET. It emphasizes the importance of understanding memory allocation and recommends overriding methods and operators in structures. The author stresses the need for careful benchmarking before making overrides.
General Performance Tip: Using Statements and Unused References
This article series provides crucial coding tips for improving performance, emphasizing the impact of small changes when handling high message volumes. It advises on removing unnecessary using statements to streamline code and improve type creation. The CodeRush refactoring tool or manual removal methods are recommended. Further details can be found in the "Analyzing Code for Issues" chapter of a code performance book.
Code Quality & Performance Virtual Conference – 2021
I'm so happy to announce I will be hosting the worlds first code quality and performance virtual conference that will be streamed by C# Corner Live on June 18th that starts at 10 am EST. I have been wanting to do a conference like this for over 10 years and I'm so excited to finally … Continue reading Code Quality & Performance Virtual Conference – 2021
7 Years Later, How Am I Doing?
Around 7 years ago, I was speaking at a conference, and in between sessions, my mind drifted to how can I teach people what I have learned being a software engineer for 20 years instead of the latest framework or new version of .NET. I set out to do just that since what I wanted … Continue reading 7 Years Later, How Am I Doing?
Open-Source Code Quality – Foundatio
How important is code quality to your team? It should be at the top of the list, not only to make your customers happy but make your team happier when bugs arise and when features need to be added. Putting quality in your code in the future is a lot more expensive than doing it … Continue reading Open-Source Code Quality – Foundatio
Open-Source Code Quality – ChoETL
How important is code quality to your team? It should be at the top of the list, not only to make your customers happy but make your team happier when bugs arise and when features need to be added. Putting quality in your code in the future is a lot more expensive than doing it … Continue reading Open-Source Code Quality – ChoETL
Rock Your Code :Coding Standards for Microsoft .NET – 7th Edition
I'm excited to announce the 7th edition of my coding standards book for Microsoft .NET! This book is a compilation of common Microsoft .NET coding standards in use today. In the past, for languages like Visual Basic, Microsoft published coding standards in a single document that developers could follow or use as a basis to … Continue reading Rock Your Code :Coding Standards for Microsoft .NET – 7th Edition
Analyzing Code for Issues in .NET 5
How do you find issues in your code? Many of these rules have been ingrained in my brain for the over 20 years I have been using .NET, but I still need to use tools to speed up this process or to find the ones I miss. Using a tool like Analyze in Visual Studio will … Continue reading Analyzing Code for Issues in .NET 5
What Can Be Done to Make Code Quality Better?
This article explores the critical issue of code quality in software development. The author, with years of experience in advocating for coding standards, shares insights from fellow developers on how to enhance code quality. Key suggestions include emphasizing unit testing, code comments, and better training, while addressing ego-related challenges in code reviews. The article underscores the importance of fostering a culture of quality and incorporating coding standards into education. It highlights the need for a strong commitment to code quality in today's security-focused software landscape. Ultimately, the article offers actionable ideas for improving code quality within development teams.

You must be logged in to post a comment.