The .NET Stacks #61: 🚌 Let's go on a community blog tour
Tags: dotnet, csharp, azure
Published: 2021-08-25 23:32:44

---
title: The .NET Stacks #61: 🚌 Let's go on a community blog tour
published: true
date: 2021-08-15 16:48:00 UTC
tags: dotnet, csharp, azure
canonical_url: https://www.daveabrock.com/2021/08/15/dotnet-stacks-61/
---

Would you look at that — it's Monday again. I hope you had a wonderful weekend. Here's what we have going on this week.

- Let's go on a community blog tour
- Did you know?
- A housekeeping note
- Last week in the .NET world

* * *

## Let's go on a community blog tour

Every week, I provide a big list of quick links for you to check out. I have them this week as I always do, but I wanted to also talk about five or so community blog posts this week. (To be clear, there are always many more great posts from the community that deserves special recognition. These are just some posts that caught my eye this week.)

--

My favorite post this week comes from Josef Ottoson, who describes working with [sorting really large files in C#](https://josef.codes/sorting-really-large-files-with-c-sharp/). If you think algorithms have limited real-world applications, think again: after starting with an in-memory application, he compares external merge sort, splitting, and merging. He shows off how he only consumes 32 megabytes when sorting with an external merge sort algorithm, over almost 6 gigabytes with an in-memory solution. (As expected, sorting in memory is a little bit faster.)

--

On the heels of the "Focus on F" .NET Conf, F# creator (and the creator of C# 8 and 9 😉) Don Syme has a Github readme called [_What operators and symbols does an F# programmer need to know?_](https://github.com/dsyme/fsharp-presentations/blob/master/design-notes/on-teaching-operators.md) As someone who's been wanting to learn F# for the last few years now, I appreciate the candor: as with C#, there's much of the language that you don't need on a daily basis.

--

Over at the Visual Studio Code blog, Chris Dias [writes about the rise of notebooks](https://code.visualstudio.com/blogs/2021/08/05/notebooks). School is starting back up soon, but I'm not talking about those: here I'm talking about docs that contain text, executable code, and its output. It provides interesting use cases for learning and development.

With VS Code, the experience in working with notebooks is a big concern:

> To complete the metaphor, notebooks in VS Code have matured from those awkward teen years into (young) adulthood, confident and strong, with a bright future. Working with VS Code notebooks may take a bit of adjustment if you are moving from Jupyter, but we hope it will be worth it in the end. And, as we always try to do, you can customize the experience through settings.

--

We've geeked out about .NET source generators quite a few times in this space. To that end, last week Khalid Abuhakmeh [writes about using them to retrieve class declarations from a project](https://khalidabuhakmeh.com/dotnet-source-generators-finding-class-declarations). He uses a `ISyntaxReceiver`, which retrieves the class declarations.

--

Jeremy Miller wrote a nice post about [testing effectively with or without mocks or stubs](https://jeremydmiller.com/2021/08/04/testing-effectively-with-or-without-mocks-or-stubs/). Are you spending most of your time writing effective tests or simulating data with mocks to avoid writing integration tests? With the advancements in networking and containerization, does it need to be an either/or discussion?

He writes:

> In the past, we strongly preferred writing “solitary” tests with or without mock objects or other fakes because those tests were reliable and ran fast. That’s still a valid consideration, but I think these days it’s much easier to author more “socialable” tests that might even be using infrastructure like databases or the file system than it was when I originally learned TDD and developer testing. Especially if a team is able to use something like Docker containers to quickly spin up local development environments, I would very strongly recommend writing tests that work through the data layer or call HTTP endpoints in place of pure, Feathers-compliant unit tests.

* * *

## **Did** you know?

Did you know that in Visual Studio Code, you can make Integrated Terminal sessions appear as editor tabs, instead of taking up valuable space in the panel? Not me.

{% twitter 1422946680341557250 %}

* * *

## Quick housekeeping note

A quick note: _The .NET Stacks_ is taking a brief break until September. Over the next several weeks, my free time will be extremely limited and I won't be able to devote the time. Thanks as always for your support and I'll be back next month.

* * *

## 🌎 Last week in the .NET world

### 🔥 The Top 3

- Gregor Suttie [sets environmental variables in an Azure Function](https://gregorsuttie.com/2021/08/05/how-to-set-environment-variables-for-use-with-an-azure-function/).
- Anthony Giretti [writes about record structs in C# 10](https://anthonygiretti.com/2021/08/03/introducing-c-10-record-struct/).
- Jeremy Miller [tests with or without mocks or stubs](https://jeremydmiller.com/2021/08/04/testing-effectively-with-or-without-mocks-or-stubs/).

### 📢 Announcements

Over at JetBrains, [the v2021.2 releases for dotCover, dotMemory, dotTrace, and dotPeek have arrived](https://blog.jetbrains.com/dotnet/2021/08/03/dotcover-dotmemory-dottrace-dotpeek-2021-2/). Alexandra Kolesova [writes about updates to Rider 2021.2](https://blog.jetbrains.com/dotnet/2021/08/03/rider-2021-2-released/), and Alexander Kurakin [writes about updates to ReSharper 2021.2](https://blog.jetbrains.com/dotnet/2021/08/03/resharper-2021-2-release/).

### 📅 Community and events

- In standups this week, ASP.NET talks about [logging updates in ASP.NET Core 6](https://www.youtube.com/watch?v=V-rwe2yxh1A) and MAUI [discusses the .NET Upgrade Assistant](https://www.youtube.com/watch?v=oIQfrUfIovk).
- Shameless plug alert: [I'll be on David McCarter's "Rockin' the Code World" on Saturday](https://dotnettips.wordpress.com/2021/07/30/rockin-the-code-world-with-dotnetdave-special-guest-dave-brock/).

### 🌎 Web development

- Marinko Spasojevic [uses Azure Active Directory B2C with Blazor WebAssembly hosted apps](https://code-maze.com/azure-active-directory-b2c-with-blazor-webassembly-hosted-apps/).
- Derek Comartin [compares using async messages and synchronous requests and responses](https://codeopinion.com/synchronous-vs-messaging-when-to-use-which/).

### 🥅 The .NET platform

- Dennes Torres [warns: be careful with the .NET Core folder structure](https://www.red-gate.com/simple-talk/blogs/careful-net-core-folder-structure/).
- Nick Randolph [explores custom validation and multi-language resource loading for validation with INotifyDataErrorInfo for XAML applications](https://nicksnettravels.builttoroam.com/custom-validation/).
- Andrew Lock [inserts and removes characters using StringBuilder](https://andrewlock.net/a-deep-dive-on-stringbuilder-part-4-inserting-and-removing-characters/).
- Khalid Abuhakmeh [uses source generators to find class declarations](https://khalidabuhakmeh.com/dotnet-source-generators-finding-class-declarations).

### 📔 Languages

- Don Syme [writes: what operators and symbols do an F# programmer need to know?](https://github.com/dsyme/fsharp-presentations/blob/master/design-notes/on-teaching-operators.md)
- Marc Clifton [explains C# code to non-programmers](https://www.codeproject.com/Articles/5309402/Explaining-Csharp-Code-to-Non-Programmers).
- Matthew Jones [explores file-level namespaces in C# 10](https://exceptionnotfound.net/csharp-10-features-file-level-namespaces/) and also [writes about null parameter checking in C# 10](https://exceptionnotfound.net/bite-size-csharp-10-null-parameter-checking/).
- Niels Swimberghe levels up on data structures and algorithms as he [writes a generic bubble sort in C#](https://swimburger.net/blog/dotnet/generic-bubble-sort-in-csharp-dotnet), [works with merge sort](https://swimburger.net/blog/dotnet/generic-merge-sort-in-csharp-dotnet), [quick sort](https://swimburger.net/blog/dotnet/generic-quick-sort-in-csharp-dotnet), [insertion sort](https://swimburger.net/blog/dotnet/generic-insertion-sort-in-csharp-dotnet), [binary search](https://swimburger.net/blog/dotnet/generic-binary-search-in-csharp-dotnet), the [Generic Boyer–Moore–Horspool algorithm](https://swimburger.net/blog/dotnet/generic-boyer-moore-horspool-algorithm-in-csharp-dotnet), and [linear/sequential search](https://swimburger.net/blog/dotnet/generic-linear-search-sequential-search-for-a-sequence-in-csharp-dotnet).
- Mahesh Chand [writes about the DataTable in C#](https://www.c-sharpcorner.com/UploadFile/mahesh/datatable-in-C-Sharp/).
- Josef Ottosson [sorts really large files with C#](https://josef.codes/sorting-really-large-files-with-c-sharp/).
- Scott Hanselman [compares stringly typed and strongly typed](https://www.hanselman.com/blog/stringly-typed-vs-strongly-typed).

### 🔧 Tools

- Justin Chadell [introduces heredocs in Dockerfiles](https://www.docker.com/blog/introduction-to-heredocs-in-dockerfiles/).
- Miroslav Shtilianov [designs load tests with Test Studio and Fiddler](https://www.telerik.com/blogs/designing-load-tests-test-studio-fiddler-6-easy-steps).
- Shawn Wildermuth [looks at static site generators](https://wildermuth.com/2021/08/03/Dipping-My-Toe-into-Static-Website-Generators/).
- Chris Dias [writes about the coming age of notebooks](https://code.visualstudio.com/blogs/2021/08/05/notebooks).

### 🏗 Design, testing, and best practices

- Oren Eini [writes about "open for extension, closed for modification" as an architectural pattern](https://ayende.com/blog/194369-B/open-for-extension-closed-for-modification-as-an-architectural-pattern?Key=f1781074-3cc9-42f2-9982-b84860904968).
- Beej Burns [writes about a fixed vs growth mindset](https://completedeveloperpodcast.com/fixed-vs-growth-mindset/).
- Jimmy Bogard [continues writing about domain-driven refactoring](https://jimmybogard.com/domain-driven-refactoring-defactoring-and-pushing-behavior-down/).
- George Stocker [writes about why contexts matter](https://georgestocker.com/2021/08/06/why-contexts-matter/).
- J.B.Rainsberger [writes about BDD](https://specflow.org/bdd/bdd-before-you-begin-part-1-2/).

### 🎤 Podcasts

- The Coding Blocks podcast [talks about the 2021 State of the Developer Ecosystem](https://www.codingblocks.net/podcast/2021-state-of-the-developer-ecosystem/).
- The Merge Conflict podcast [talks to Maddy Leger](https://www.mergeconflict.fm/265).

### 🎥 Videos

- Azure Friday [introduces Azure Static Web Apps](https://channel9.msdn.com/Shows/Azure-Friday/Getting-started-with-Azure-Static-Web-Apps).
- On .NET [talks about immutable collections in C#](https://channel9.msdn.com/Shows/On-NET/C-Highlights-Immutable-Collections).