For the future of the project, it's important that class files are laid out in a way that they are easy to read and modify and do consistently. We do this to avoid “spaghetti code” that does not give developers a good feeling about the stability of the project. In this article, I will show exactly how I format code classes. In this article, I will show exactly how I format code classes by example.
Category: .NET Coding Standards
Rockin’ the Code World: Special Guest Milan Jovanović
Join me on Saturday, March 18th, 2023, at 10:00 PST on C# Corner for show #76 where, for the first time, my special guest will be Milan Jovanović, Software Architect, and Content Creator. Don't miss this episode!
Public Service Announcement: PMs and Managers Must Ensure Memory Issues are Not Introduced in Microsoft .NET Projects!
I have been writing about this in books and articles since the beginning of Microsoft .NET over 20 years ago. This first PSA is geared toward Project Managers and Development Managers as a warning, so their projects don't suffer from preventable issues like this that I see at every company I work for.
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.
Collection Performance: Processing Collections with Parallel.For() and Parallel.ForEach()
Since .NET 4.0, under the System.Threading.Tasks namespace, processing of collections can be sped up by using Parallel.For() and Parallel.ForEach(). These methods operate with thread-local data that runs in parallel. Both are easy to use and come with different options. This article shows you how to use these methods along with benchmark results.
Collection Performance: Using Immutable Sorted Collections
There are two immutable sorted collections, and they are ImmutableSortedDictionary and ImmutableSortedSet. This article shows which is more performant.
Collection Performance: Sorting With LINQ
There are several ways to sort a collection in .NET and one of them is by using LINQ. Two main extension methods are part of LINQ that can be used to easily sort collections.
Rock Your Code: XML Documentation of Code for Microsoft .NET
Have you ever had issues trying to figure out what the code is doing that you were tasked to work on? Is there any documentation for it? Do you need questions answered, but the original developer isn’t working at the company anymore? Well, there is an easy answer for .NET projects… XML documentation and code comments! These days, I’m beginning to think that documentation of code in Microsoft .NET is becoming a lost art. This is a bad trend that I will try to improve with this article. If you use good coding standards, most of the documentation I will talk about is simple to generate!
dotNetDave Rocks the Code Quality Conference 2022
The dotNetDave For Those About to Code: Worldwide Tour will be at the Code Quality Conference 2022 on August 19th. Last year we had over 72K software engineers watch the conference and I hope you will watch it this year to learn how to rock your code to release quality applications and services that meet your user's needs.
We Must Demand Quality in Ourselves, the Software We Write, and In Apps We Use!
In this article, for the first time, I discuss three subjects; demand quality in apps you use, demand quality in yourself (improve skills to grow professionally), and finally demand quality in the apps you write. Demanding a certain level of quality in yourself as well as apps that you use and develop will ultimately result in important growth as a professional, resulting in higher-paying jobs.
You must be logged in to post a comment.