In 2019, while I was working on benchmark tests for my new book on code & app performance, I wanted to use “real-world” data types like a person or a coordinate along with methods for creating random words, email addresses, URLs, etc. After I worked on the code, I thought that most of it could … Continue reading Unit Testing with Random Data
Category: .NET Core
dotNetDave Rocks The San Diego .NET User Group: Learn How To Build a Cloud App!
The first, live and in person, stop on the dotNetDave No Apologies World Tour will be at the San Diego .NET User Group on July 7th at 5:30 pm. I hope you will join me at this meeting. I will have lots of swag (including some of my books) to give-a-way during my session. I'm … Continue reading dotNetDave Rocks The San Diego .NET User Group: Learn How To Build a Cloud App!
How To Tell Your Open Source Projects Are Done with Jeff Fritz
Join us for Episode 5 of The Confessions of Angry Programmers podcast! In this episode David and Woody talk about: Dogfooding: David talks about his frustration logging into Microsoft Teams. WTF Were They Thinking?: Woody discusses public computer displays showing sensitive information in an error! Guest We are joined by our guest Jeff Fritz from … Continue reading How To Tell Your Open Source Projects Are Done with Jeff Fritz
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?
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.
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 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
Using the New IAsyncEnumerable Interface in .NET Core 3
The release of .NET Core 3 last month includes a brand new IAsyncEnumerable interface in the System.Collections.Generic namespace. The Microsoft documentation simply states: Exposes an enumerator that provides asynchronous iteration over values of a specified type.Microsoft Documentation This new interface sounds interesting, so I looked at the code in my open-source assembly to see if … Continue reading Using the New IAsyncEnumerable Interface in .NET Core 3
dotNetDave Rocks the Granite State Code Camp
For the first time, the dotNetDave 25th Anniversary World Tour is coming to the Granite State Code Camp in Manchester, NH on November 2nd! Even though I was born back east (Delaware), I don't think I have ever been to the state. If you live in the area, please let me know what I should … Continue reading dotNetDave Rocks the Granite State Code Camp
The New JSON Serializer in .NET Core 3
The release of .NET Core 3 last month introduces a brand new serializer for JavaScript Object Notation (JSON) under the System.Text.Json namespace. The Microsoft documentation states: The System.Text.Json namespace provides high-performance, low-allocating, and standards-compliant capabilities to process JavaScript Object Notation (JSON), which includes serializing objects to JSON text and deserializing JSON text to objects, with … Continue reading The New JSON Serializer in .NET Core 3

You must be logged in to post a comment.