In this episode we start a series on streams, Kafka and Redis
The new project templates in .NET 6 make use of Top Level statements, a feature that was introduced in C#9. The code generated by these new templates looks quite a bit different when compared to .NET 5 and you might be asking yourself ‘Where is my Program Main method!??’. Let’s dig in and find out!
Top-Level Statements - https://docs.microsoft.com/en-us/dotnet/csharp/whats-new/tutorials/top-level-statements
.NET 6 Project Template Changes - https://docs.microsoft.com/en-us/dotnet/core/tutorials/top-level-templates
ILSpy VS Code Extension - https://marketplace.visualstudio.com/items?itemName=icsharpcode.ilspy-vscode
.NET 6 and Visual Studio 2022 come with new and, very interesting, project templates. In this video we take a look at the templates and where everything went.
In a previous episode, we looked at some new LINQ methods coming to .NET 6 (Chunk, MinBy, MaxBy). There’s even more LINQ goodness coming to .NET 6 with helpful overloads to existing LINQ Methods (FirstOrDefault, SingleOrDefault, LastOrDefault, ElementAtOrDefault, Take, ElementAt).
Previous Episode: New LINQ Methods in .NET 6 https://youtu.be/c0VwTzQ2gUQ
We are joined today by Dylan Smith who walks us through building out our own github actions in C# using his new toolkit.
Links:
The actions we built: https://github.com/stimms/FibonacciAction
Test repo: https://github.com/stimms/FibTest
Source repository: https://github.com/OctoGeeks/dotnet-action-template
Azure Blob Storage supports lifecycle rules which can move your blob between different tiers saving you money. In this episode we cover how to set these rules up by hand and in terraform
.NET 6 introduce some helpful new LINQ extension methods (Chunk, MaxBy and MinBy).
Chunk - https://docs.microsoft.com/dotnet/api/system.linq.enumerable.chunk
MaxBy - https://docs.microsoft.com/en-us/dotnet/api/system.linq.enumerable.maxby
MinBy - https://docs.microsoft.com/en-us/dotnet/api/system.linq.enumerable.minby
If you need to process comma separated values in C# then the best tool for the job is CSV Helper https://joshclose.github.io/CsvHelper/
.NET 6 introduces two new types to represent dates and times separately. In this episode, we explore the DateOnly and TimeOnly types and talk about why they are an important addition to .NET.
Read More
https://devblogs.microsoft.com/dotnet/date-time-and-time-zone-enhancements-in-net-6/
In this video we take a look at a couple of new to me git commands which will make your life easier.
References:
https://www.banterly.net/2021/07/31/new-in-git-switch-and-restore/