.NET is humming along, MAUI is coming at some point, and all the C# 9 Records in your project should be in one file, says a .NET team member.
Introducing the .NET 6 Runtime for AWS Lambda Congrats, you can now spend even less on your lambda functions by using the power of .NET 6. I just had a thought: As runtimes get faster, costs to run lambda functions will necessarily drop. So if Amazon writes their own cloud native programming language, would they be incentivized to make it slow? 🌧
Create a .NET MAUI Windows MSIX to Sideload Or Publish to the Microsoft Store This video is how to use a thing that is not generally available yet to do a thing that no one wants to do yet. 😶
Technically this one is for next week, but David Fowler woke up and chose violence:
With records in C#, a type per file feels like a waste of space. How have you been organizing your code with records.
I don’t advocate internet dog-piling but this is just beyond the pale. With the ratio (79 replies, 14 Retweets and 6 Quote Tweets) it’s clear you all agree with me on this. Seriously though, I like Records, but I don’t see a reason to get away from the one-class-per-file, especially when the alternative is worse.
Think about it, would you rather have a file named
records.cs that contains 50 class/records that represent all of the data-types in your application, or 50 files named what the record is?
employee.cs for example? Would you rather fight one horse-sized duck or 100 duck-sized horses? 🦆
Last Week was light. Like, really light. Part of it was me (I have toned down my twitter consumption), and part of it was that everyone’s attention is focused on Russia invading Ukraine. As of this writing, it appears public sentiment is against Russia, but that doesn’t mean much to the civilians and soldiers in Ukraine fighting for their lives and homes.
If you’d like me to keep this newsletter going, reply and let me know what you like about it.
2 thoughts on “[Last Week in .NET #83] – Can I get 100 duck-sized horses for an experiment, please?”
I really enjoy reading your roundups of the latest drama in .NET every week. It has just the right level of snark and cynicism for this .NET developer, and it helps reminds me that I’m not the only one putting up with the latest nonsense from Microsoft. Thanks for taking the time to do compile it, and please do continue!
Do people really navigate their code base using the Solution Explorer anymore? Our primary project has literally thousands of classes and we organize everything by features with no correlation between file location and class name, literally no one has ever complained. As an example, we use MediatR and commonly have the Request class, Response class, and Handler class all in the same file that is named after the Request. (Ping.cs would contain Ping, Pong, PingHandler). Using ReSharper CTRL+T (or just VS use CTRL+semicolon) and start typing the name to find any class instantly.