dotNetTips

Newsletter Image

Messages

1/19/2024
9 : 4

Collection Performance in Microsoft .NET: Adding Items To a Dictionary

dotNetDave posted: " When incorporating items into a Dictionary, the prevalent approach in the code I review involves using the Add() method, as illustrated below: var collection = new Dictionary
1/17/2024
9 : 4

Collection Performance: The Fastest Way To Iterate Over a Collection in .NET!

dotNetDave posted: " Subscriber Content Starting with .NET 5, a new method for iterating over collections was introduced: CollectionsMarshal.AsSpan<T>. The CollectionsMarshal.AsSpan method
1/4/2024
16 : 44

Rockin’ the Code World Season 4: Special Guest Leslie Richardson

dotNetDave posted: " I hope you will join me on Saturday, January 13th, 2024, at 10:00 PST on C# Corner TV for show #94! My very special guest will be Leslie Richardson, Senior Product Manager at
1/3/2024
17 : 14

Rockin’ the Code World Season 4: Special Guest Brady Gaster

dotNetDave posted: " I hope you will join me on Saturday, January 20th, 2024, at 10:00 PST on C# Corner TV for show #95! My very special guest will be Brady Gaster, Principal Product Manager at
1/2/2024
9 : 4

Modernizing Microsoft Office: A Call for Innovation in Word

dotNetDave posted: " In December 2023, I finalized the 8th edition of my book, "Rock Your Code: Coding Standards for Microsoft .NET," spanning an impressive 560 pages. Regrettably, the
1/1/2024
16 : 34

Rock Your Code: Coding Standards for Microsoft .NET (8th Edition)

dotNetDave posted: " Today I am announcing the 8th edition of my book titled Rock Your Code: Coding Standards for Microsoft .NET, now available on Amazon. This book serves as the most
12/24/2023
9 : 4

12 Days of Geekmas

dotNetDave posted: " Below is what I call the 12 Days of Geekmas! These memes contain thoughts I've had from when I was a beginner to now with a few shameless plugs for my books! Enjoy! Dear
12/15/2023
13 : 34

Rockin’ the Code World Season 4: Special Guest Jodie Burchell

dotNetDave posted: " I hope you will join me on Saturday, February 17th, 2024, at 10:00 PST on C# Corner TV for show #97! For the first time, my very special guest will be Jodie Burchell, Data
12/12/2023
17 : 54

dotNetDave on #MVPbuzzChat

dotNetDave posted: " On December 11th, I thoroughly enjoyed participating in the #MVPbuzzChat podcast with Christian Buckley. Our conversation delved into various topics, including coding, the
12/11/2023
9 : 4

Beyond the Screen: The Power and Perks of In-Person Tech Conferences

dotNetDave posted: " Now that COVID is being effectively managed and in-person conferences are making a comeback, there's a noticeable trend of low attendance. While I personally understand
12/5/2023
17 : 44

[New post] Rockin’ the Code World Season 4: Special Guest Simon Painter

dotNetDave posted: " I hope you will join me on Saturday, December 16th, 2023, at 10:00 PST on C# Corner TV for show #93! For the first time, my very special guest will be Simon Painter, Senior
12/5/2023
9 : 4

[New post] Microsoft .NET Code Analysis: Add Explicit Cast in foreach() Loops

dotNetDave posted: " When looping over a collection in a foreach() loop, there could be an issue with casting that coders might not be aware of. Let's look at the code that demonstrates this
11/30/2023
23 : 44

[New post] Rockin’ the Code World Season 4: Special Guest Olia Gavrysh

dotNetDave posted: " I hope you will join me on Saturday, December 2nd, 2023, at 10:00 PST on C# Corner TV for show #92! For the first time, my very special guest will be Olia Gavrysh, Senior
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