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

dotNetTips.Utility Open-Source Projects for .NET Core & .NET Standard

Announcing the dotNetTips.Utility for .NET Core Repository

Code Quality: A Fundamental Feature, Not an Afterthought

The author, as a contractor, observes a worrying trend of poor code quality across projects, often overseen by senior engineers. Despite advocating for clean coding practices through teaching and writing, companies prioritize short-term gains over long-term maintainability. The author urges developers to prioritize code quality and leverage available resources for improvement.

dotNetDave Rocks The DotNetSouth.Tech Conference

For the first time, I will be speaking at the DotNetSouth.Tech conference in Atlanta, Georgia on May 13th and 14th. I'm excited to present the sessions below. Rock Your Code: Real World Cloud App From Start to Finish Room: Room 104 @ 2:40pm on May 13th This session will show how I created a cloud … Continue reading dotNetDave Rocks The DotNetSouth.Tech Conference

Proper Type Encapsulation – Part 2

In part 1 of this article, I explained how to implement proper data encapsulation. In part 2 I want to talk about encapsulating business logic. I see this missing in a lot of type design, especially when using an ORM like Entity Framework. It’s the job of the architect and coder of that type to … Continue reading Proper Type Encapsulation – Part 2

Performance Tip: Checking For Empty String

In all my books and conference sessions I talk about the proper way to test if a string is valid. Microsoft .NET has been around almost two decades and I still see code like this: if (testValue.Trim() == "") This code is even wrong since it's not checking for null. A better way would be like this: … Continue reading Performance Tip: Checking For Empty String

Proper Type Encapsulation – Part 1

Encapsulation is the first pillar of Object-Oriented Programming and maybe the most important. This is how wikipedia.org defines encapsulation: Encapsulation is one of the fundamentals of OOP (object-oriented programming). It refers to the bundling of data with the methods that operate on that data. Encapsulation is used to hide the values or state of a … Continue reading Proper Type Encapsulation – Part 1

Is Quality Part of Open-Source Projects Your App Is Using?

Is code quality important 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 when … Continue reading Is Quality Part of Open-Source Projects Your App Is Using?

Defensive Programming – Let Type Checking Work for You

Since I have been a speaker and a teacher, I have always stressed the importance of practicing proper object-oriented programming (OOP) techniques. If you don’t practice OOP, no matter what language you are using, I guarantee you will end up with a “house of cards” and they all eventually fall. The first “pillar” of OOP … Continue reading Defensive Programming – Let Type Checking Work for You