Dave Callan | dotnet(@Dave_DotNet) 's Twitter Profileg
Dave Callan | dotnet

@Dave_DotNet

Microsoft MVP | .NET Developer & tech lead from Ireland!
Talks about Azure, #csharp, Entity Framework, #dotnet and Visual Studio.

ID:1433020305979723778

linkhttps://www.linkedin.com/in/davidcallan/ calendar_today01-09-2021 10:54:18

3,8K Tweets

10,3K Followers

288 Following

Dave Callan | dotnet(@Dave_DotNet) 's Twitter Profile Photo

Performance Improvements 🚀

Links to all Stephens Toubs amazing performance improvement blog posts which showcase hundreds of performance related PRs which usually go into each .NET release.

.NET 8
devblogs.microsoft.com/dotnet/perform…

.NET 7 devblogs.microsoft.com/dotnet/perform…

.NET 6

#dotnet Performance Improvements 🚀 Links to all Stephens Toubs amazing performance improvement blog posts which showcase hundreds of performance related PRs which usually go into each .NET release. .NET 8 devblogs.microsoft.com/dotnet/perform… .NET 7 devblogs.microsoft.com/dotnet/perform… .NET 6
account_circle
Dave Callan | dotnet(@Dave_DotNet) 's Twitter Profile Photo

How to use DateOnly and TimeOnly types

These types were introduced in .NET 6 and allow us to more clearly express the intent of our code.

Previously (and still in the .NET Framework) we often just used DateTime and discarded the time part for variables such as DateOfBirth or

account_circle
Dave Callan | dotnet(@Dave_DotNet) 's Twitter Profile Photo

.Http file included with API project in .NET 8

I love .http files as they allow us to send HTTP requests directly from within Visual Studio.

From .NET 8 the API project template includes one by default which I think is great to expose more devs to them.

.Http file included with API project in .NET 8 I love .http files as they allow us to send HTTP requests directly from within Visual Studio. From .NET 8 the API project template includes one by default which I think is great to expose more devs to them. #dotnet
account_circle
Dave Callan | dotnet(@Dave_DotNet) 's Twitter Profile Photo

.Http file included with API project in .NET 8

I love .http files as they allow us to send HTTP requests directly from within Visual Studio.

From .NET 8 the API project template includes one by default which I think is great to expose more devs to them.

.Http file included with API project in .NET 8 I love .http files as they allow us to send HTTP requests directly from within Visual Studio. From .NET 8 the API project template includes one by default which I think is great to expose more devs to them. #dotnet
account_circle
Dave Callan | dotnet(@Dave_DotNet) 's Twitter Profile Photo

Deep Dive on LINQ 💡

Another great video with Scott Hanselman and Stephen Toub teaming up to explain how LINQ works under the hood.

youtube.com/watch?v=xKr96n…

account_circle
Dave Callan | dotnet(@Dave_DotNet) 's Twitter Profile Photo

Enable Build Acceleration by default in VS

Enabling Build Acceleration instructs Visual Studio to only build projects that had modifications while skipping projects that were unchanged. Enabling it can significantly reduce incremental build times.

 Ideally we would add :

Enable Build Acceleration by default in VS Enabling Build Acceleration instructs Visual Studio to only build projects that had modifications while skipping projects that were unchanged. Enabling it can significantly reduce incremental build times.  Ideally we would add :
account_circle
Dave Callan | dotnet(@Dave_DotNet) 's Twitter Profile Photo

LINQ All() returns true for empty collections

A gentle reminder that LINQ All returns true for empty collections which may seem counter-intuitive to some.

LINQ All() returns true for empty collections A gentle reminder that LINQ All returns true for empty collections which may seem counter-intuitive to some. #dotnet
account_circle
Dave Callan | dotnet(@Dave_DotNet) 's Twitter Profile Photo

Solid principles - Advantages and disadvantages

I asked ChatGPT for the advantages and disadvantages of the SOLID principles. I think the table below is pretty fair and balanced?

Solid principles - Advantages and disadvantages I asked ChatGPT for the advantages and disadvantages of the SOLID principles. I think the table below is pretty fair and balanced?
account_circle
Dave Callan | dotnet(@Dave_DotNet) 's Twitter Profile Photo

New solution format in Visual Studio ❤

Readability and mergeability is massively improved.

Available in VS 2022 v 17.10 but as preview feature.

Turn it on from ->
Preview Features -> Use Solution File Persistence Model and then save your solution file as .slnx

New solution format in Visual Studio ❤ Readability and mergeability is massively improved. Available in VS 2022 v 17.10 but as preview feature. Turn it on from -> Preview Features -> Use Solution File Persistence Model and then save your solution file as .slnx #dotnet
account_circle
Dave Callan | dotnet(@Dave_DotNet) 's Twitter Profile Photo

.NET 8 v .NET 9 Exception Handling benchmarks

Have just ran these on preview 3, wow ❤.

76% faster handling in .NET 9 for the benchmark code I ran (in the 2nd tweet below).

.NET 8 v .NET 9 Exception Handling benchmarks Have just ran these on preview 3, wow ❤. 76% faster handling in .NET 9 for the benchmark code I ran (in the 2nd tweet below). #dotnet
account_circle