Show Notes
This is Last Week in .NET for the week ending 10 October 2020.
No releases this week, but lots of goodies showing off .NET 5.
Starting out with some inside baseball, I'm working to improve the layout of the newsletter, and if there's someone's design you think I should shamelessly copy, let me know on twitter 🐦:
@gortok.
🎥
Rich Lander and Jared Parsons of Microsoft talk C# 9 - C# 9 gives us records (light-weight approaches to DTOs and property-based data structures), top-level statements (the ability to remove all the ceremony from a single file C# script, like "static void main"), and init only properties (ability to init properties with a value without super long constructors).
In other words: C# will let you write less plumbing code. Watching Jared Parsons writing code during this video reminds me of two things: 1) Visual Studio should enable line numbers by default, 2) You can tell when someone writes for the Roslyn compiler for a living because of how they write C# code, and I'll never get to that level.
- new APIs
- JIT improvements (types/bounds checking, zeroing)
- Regex improvements
and more!
156,439 are crying tears of both joy and sorrow. Joy at working from home, Sorrow at having to use Microsoft Teams full time. Hey, maybe this will be the push needed for Microsoft to improve Teams?
📝
Debug Source Generators in C# 9 and Visual Studio Code Generation has a storied past. One of the C# 9 features is the ability to implement Source Generators in a 'standard' way. This blog post takes that one step further and tells you how to debug these new Source Generators. It does not, however, tell you what to do when the source generator takes your job.
📝
Diving into System.Threading.Channels.UnboundedChannel (Part 2) Can we not? I mean, if you find yourself needing this namespace, you should already either really love what you do or be suffering from Stockholm Syndrome. Either way, Steve Gordon has your back with this blog post. I'm still getting over my time with .NET Remoting, if I'm being transparent.
It makes me wonder if on Microsoft performance reviews whether they judge employees on how many Microsoft products they use: Surface book? Check OneDrive? Check Windows? Check Zune? Check Word? Check Powerpoint? Check Teams? Check Azure? No? They USE AMAZON WEB SERVICES?
PROMOTION DENIED.
📝
Do you want to deploy ASP.NET Core to Kubernetes? Please say no. But if you said yes, Andrew Lock has a blog post for you. He of course can't say "Don't use Kubernetes" since his blog post is based on you using Kubernetes, but I can. Don't use Kubernetes unless you want your next job to be managing Kubernetes.
Ok, sorry for shouting, I'm still a little sore about XNA.
All in all, that's everything I found last week in .NET. No releases by Microsoft, I imagine they're pretty quiet trying to hunker down for the release of .NET 5. We shouldn't see any more Release Candidates unless something major happens.