.NET Annotated Monthly | October 2019

October. Around the globe, seasons ease into autumn and spring, awaiting the changing leaves or the return of nature. Stores in the USA and Germany are selling Christmas goods already – that’s just crazy! Nonetheless, October means there’s no better time to catch up on some technical reading, preferrably with a hot pumpkin-spice drink. October is a great month!

.NET news

The previous month has been full of big news! It’s here! It’s here! .NET Core 3.0 has finally been released, after only 9 (count ‘em, 9!) previews and a Release Candidate!

Download .NET Core 3 – At this link you can download the .NET Core 3.0 SDK, Runtime, or view the release notes.

The announcement was made at the .NET Conf virtual conference in which both Maarten Balliauw and Rachel Appel from JetBrains presented.

.NET tutorials and tips

How to build command line interfaces and distribute them as self-contained executables – CLIs are all the rage these days, and Radu Matei demonstrates how to build and distribute them as self-contained executables.

Use Performance Counters in .NET to measure Memory, CPU, and Everything – Full Guide Michael Shpilt does some serious measuring in this post about profiling and performance.

Detecting Sync over Async Code in ASP.NET Core – There are some excellent tips in this post about sync and async code by Derek Comartin, as well as how to avoid common async pitfalls.

gRPC and C# 8 Async stream cancellation – A continuation from last month’s post about async streams by Laurent Kempe.

ASP.NET Core Server-Side Blazor with Authentication – Eric L. Anderson blogs about server-side authentication in Blazor, an important aspect of every app.

Try out Nullable Reference Types – Phillip Carter, the Program Manager for .NET and Languages has created an excellent piece on nullable reference types, a new feature of the C# language.

3 ways to improve the EF Core performance in your .NET Core app – Performance! It’s often overlooked until the software slows to a crawl and users complain. Why not try some of these tips on performance by Sergiy Korz in your next app?

Let’s Learn Blazor: Dependency Injection – Check out this video by Brian Lagunas on DI in Blazor! Brian creates some great content, most recently, in video form.

Analyzing website memory dumps – I know, this is everyone’s favorite: analyzing memory dumps. Or maybe not. Either way, John Verbiest wrote a detailed post that you can use to make your next memory analysis session a lot less painful than it often is.

Here are some of my favorite .NET tutorials and tips posts this month. Check them out!

GC Perf Infrastructure Part 0 – Maoni Stephens on the .NET team posts a super-deep deep-dive regarding Garbage Collection performance in .NET. This is a shorter but seriously hard core post, folks! You’ll learn about things you didn’t even know you needed to know, until now.

WPF and .NET Generic Host with .NET Core 3.0 – If you haven’t ventured into why you should consider creating a generic .NET host, Laurent Kempe makes the case for doing so, and shows you how.

Goodbye Javascript! Build an Authenticated Web App in C# with Blazor + ASP.NET Core 3.0 – “Curious what the experience would be like to trade in Javascript for C# on the front end? You are about to find out!” says Heather Downing as she shows how to build a JavaScript-free front-end using Blazor.

Moving from the switch statement to switch expressions (C# 8) – Looking for a better switch statement in C#? This post by Christian Nagel highlights a new alternative.

Fun tweets!

Immo Landwerth tweets “Did you know that C# supports the nice curly syntax for any type, so long it implements IEnumerable and has a method called Add? Any number of args and types will work, even overloaded Add. #CollectionInitializersFTW”.

Tweet - curly syntax for any type

Our own Dmitry Ivanov sends out a very amusing tweet about ‘this’: “С# has suboptimal syntax for extension methods. You have to invent name of ‘this’ variable each time. One of @JetBrainsRider/@resharper developers started arguable tradition of this funny naming (look at picture). Newcomers are shocked for a minute how it even works.”
C# odd syntax
Just look at that! Err, I mean, this!

Events, community and culture

Here are some events where you’ll find JetBrains staff:

A better way to sell your skills as a developer than just “hire me!” or mass applying – At some point, we all need to look for a job or contract. So sometimes a little bit of marketing and sales knowledge goes a long way. Post by Corey Cleary.

Technology Isn’t Designed to Fit Women – Victoria Turk shows the many ways that technology products ignore half of the world’s population. I urge everyone to consider how technology just might not (and probably won’t) work for everyone you think you are building it for. You absolutely must specifically write requirements to reach your entire target audience, and must take steps to think outside of the box and reduce bias when it comes to really know what actually works for all your customers.

Random, interesting, and cool stuff

Have you ever wondered what, exactly, makes code high quality code? What do other people think high quality code is? Well, I asked just that question on various social media sites, and created a tag cloud of the most popular responses (about 200 in total). By far, readable code wins hands down, followed by code that is maintainable, reusable, testable, loosely-coupled, and consistent.

Quality code

Since a good style is key for readability, I’ve created a series (still in progress) about how to style your code easily and efficiently using Rider:

What do you think? What makes code high quality? Comment on the JetBrains .NET blog and let us know.

And finally…

Here’s a chance to catch up on JetBrains articles and news that you might have missed:

If you have any interesting or useful .NET or general programming news to share via .NET Annotated Monthly, leave a comment here or drop me a message via Twitter.

Check out this fantastic offer! CODE Magazine is offering a free subscription to JetBrains customers!

Subscribe to .NET Annotated!

About Rachel Appel

Rachel Appel is a Developer Advocate at JetBrains focusing on .NET, Azure, and web development technologies. She has been in the business of creating software for nearly 30 years as an author, mentor, and speaker at top industry conferences around the world. Her hobbies include science, reading, languages, and travel. Follow Rachel on Twitter or check out her personal blog
This entry was posted in How-To's and tagged . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *