dotNetTips

Newsletter Image

Messages

11/28/2023
9 : 4

[New post] Microsoft .NET Code Analysis: Make Collection Properties Read-Only

dotNetDave posted: " In the realm of programming, it's a widespread practice to design types that provide access to collections of data. However, upon reviewing various codebases, a recurring
11/21/2023
21 : 4

[New post] Microsoft .NET Code Analysis: Simplify LINQ Expressions

dotNetDave posted: " In much of the source code I analyze, I often come across LINQ expressions that utilize Lambda expressions combined with methods like Where() and FirstOrDefault(). While this
11/21/2023
9 : 4

[New post] Microsoft .NET Code Analysis: Utilize the Pattern Matching ‘not’ Operator

dotNetDave posted: " Throughout my experience with C# coding, I've never been particularly fond of the '!' (bang) operator. This is mainly because it can easily go unnoticed when
11/14/2023
9 : 4

[New post] Microsoft .NET Code Analysis: Utilize Pattern Matching to Eliminate the Need for an ‘is’ Check

dotNetDave posted: " In a significant portion of the code I examine, developers often perform multiple type conversions within a single code block, as demonstrated in this example: if (value is
11/14/2023
9 : 4

[New post] Analyzing Performance Issues in Microsoft .NET 8

dotNetDave posted: " Over the past few months, I have been conducting extensive performance benchmarking on .NET 8 with the aim of sharing my findings at conferences such as the Copenhagen
11/7/2023
9 : 4

[New post] Microsoft .NET Code Analysis: Use nameof() To Retrieve the Parameter Name

dotNetDave posted: " In many of the codebases I review when I join a new project, I often come across code that throws exceptions, like the example below from one of these projects: public
10/25/2023
8 : 14

[New post] Microsoft .NET Code Analysis: Consider Using String.Contains() Instead of String.IndexOf()

dotNetDave posted: " For improved readability, Microsoft recommends utilizing String.Contains() over String.IndexOf(). The following code example illustrates this recommendation: private static
10/24/2023
17 : 4

[New post] Rockin’ the Code World Season 4: Special Guest Maddy Montaquila (Leger)

dotNetDave posted: " I hope you will join me on Saturday, November 4th, 2023, at 10:00 PST on C# Corner TV for show #91! For the first time, my very special guest will be Maddy Montaquila, Senior
10/19/2023
4 : 5

[New post] Rethinking the Role of Development Managers: A Call for Change in the Software Industry

dotNetDave posted: " Have I caught your attention? If you're a part of the management team at a software development company, this article is a must-read. If you're a development manager
10/19/2023
3 : 14

[New post] Microsoft .NET Code Analysis: Remove Unnecessary Lambda Expressions

dotNetDave posted: " Microsoft recommends eliminating redundant Lambda expressions. This code exemplifies the issue: condition = allRequiredNonPkProperties.Select(p => projection.BindProperty(p
10/8/2023
15 : 34

[New post] Rockin’ the Code World Season 4: Special Guest Erik Jensen

dotNetDave posted: " I hope you will join me on Saturday, October 21st, 2023, at 10:00 PST on C# Corner TV for show #90! For the first time, my very special guest will be Erik Jensen, Principal
10/4/2023
8 : 4

[New post] Microsoft .NET Code Analysis: Boost Your Code Performance with Concrete Types

dotNetDave posted: " To achieve enhanced performance, it is advisable to prioritize the utilization of concrete types whenever feasible. Here is an illustrative example highlighting this concern
10/1/2023
18 : 14

[New post] Nullable Type Performance: Retrieving a Nullable Value

dotNetDave posted: " Subscriber Content Nullable types were introduced in C# 2.0 and were closely associated with the release of the .NET Framework 2.0 in 2005. To check a nullable type for a
9/27/2023
8 : 4

[New post] Microsoft .NET Code Analysis: Use string.Method(char) Instead of string.Method(string) For String with Single Character

dotNetDave posted: " Consider using string.Method(char) instead of string.Method(string) for strings containing a single character. During my review of the Entity Framework source code, I
9/25/2023
8 : 4

[New post] How to Thrive as a Professional Software Engineer: Be a Squeaky Wheel

dotNetDave posted: " In my numerous interactions at conferences and through my written works, I consistently emphasize the importance of a characteristic that sets professional software engineers
9/22/2023
20 : 44

[New post] dotNetDave Rocks the Build Stuff Conference 2023

dotNetDave posted: " I'm thrilled to announce that, for the very first time, the For Those About To Code: World Wide Tour will be making a stop at the 2023 Build Stuff event in Vilnius,
9/20/2023
8 : 4

[New post] Microsoft .NET Code Analysis: Avoid Using Constant Arrays as Arguments

dotNetDave posted: " During my analysis of the Entity Framework source code, I identified a performance issue related to the use of constant arrays as arguments. This issue was observed in the
9/17/2023
17 : 4

[New post] dotNetDave Goes To… The Copenhagen Developers Festival 2023

dotNetDave posted: " In August 2023, I had the privilege of being one of the inaugural speakers at the first Copenhagen Developers Festival hosted by NDC Conferences. This marked my first-ever
9/17/2023
12 : 14

[New post] Rockin’ the Code World: Special Guest Dylan Beattie

dotNetDave posted: " Join me on Saturday, September 30th, 2023, at 10:00 PST on C# Corner TV for show #88 where, for the first time, my special guest will be Dylan Beattie, Chief Everything
9/17/2023
12 : 14

[New post] Conference Interview: Jakob Bradford – General Manager at NDC Conference

dotNetDave posted: " I had the privilege of speaking at the inaugural Copenhagen Developers Festival organized by the NDC Conference from August 30th to September 1st, 2023. Intrigued by this