New Book Release! Rock Your Code: Coding Standards for Microsoft .NET

Announcing the 6th edition of my coding standards book for Microsoft .NET! Newly updated for .NET Core 3.1 and .NET Framework 4.8. 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 … Continue reading New Book Release! Rock Your Code: Coding Standards for Microsoft .NET

What Can Be Done to Make Code Quality Better?

Since 2014, all my conference sessions have been wrapped around code quality. It has always been very important to me and I try to include a lot of that concept in my coding standards book. Since that time, I have asked developers to participate in an online survey to see how they implement coding standards … Continue reading What Can Be Done to Make Code Quality Better?

Properly Setting Up .NET Core Projects

Visual Studio by default does not set all the appropriate options to help you write rock-solid .NET Core code. Below are the recommendations that your team should use for C# projects. All the following recommendations are for Visual Studio 2019. If you have an older version, most of this should still apply. To learn the … Continue reading Properly Setting Up .NET Core Projects

Properly Setting Up .NET Framework Projects

Visual Studio by default does not set all the appropriate options to help you write rock-solid code. I will show the recommendations that your team should use for C# projects. All the following recommendations are for Visual Studio 2019. If you have an older version, most of this should still apply. More information, including suggestions … Continue reading Properly Setting Up .NET Framework Projects

Properly Comparing Strings with Globalization and Performance in .NET

In Microsoft .NET there are many ways to compare strings. I would say that most of the code I analyze, I see it done one of these two ways: bool result = email1 == email2; bool result = email1.Equals(email2); Is this the best way to compare strings? The quick answer is no. While this works, … Continue reading Properly Comparing Strings with Globalization and Performance in .NET

dotNetDave Says… If Your Code Is Hard To Unit Test, You’re Doing It Wrong

Unit testing is something very important for any project. With that said, I rarely see it done in projects or done correctly. How can you push the code to quality assurance or production without knowing the state of the code? A few years back, I worked on a contract at a company here in San … Continue reading dotNetDave Says… If Your Code Is Hard To Unit Test, You’re Doing It Wrong

dotNetDave Says…Always Code For Reusability

You can overhear me say this in every one of my code conference sessions! I've been coding for over 25 years, and this way of thinking has allowed me to make changes to the code, later in time, easier. For example, in a recent project that I was hired to work on about 4 months … Continue reading dotNetDave Says…Always Code For Reusability