Michael's Coding Spot https://michaelscodingspot.com Michael Shpilt's .NET blog about C#, memory, performance, and the occasional rant Sun, 27 Sep 2020 10:09:54 +0000 en-US hourly 1 https://wordpress.org/?v=5.4.2 https://michaelscodingspot.com/wp-content/uploads/2017/01/cropped-stillOnWhite4-transparent-big-32x32.png Michael's Coding Spot https://michaelscodingspot.com 32 32 Use Attributes & Middleware in ASP.NET Core for Logging, Telemetry, and Anything Else https://michaelscodingspot.com/attributes-and-middleware-in-asp-net-core/ https://michaelscodingspot.com/attributes-and-middleware-in-asp-net-core/#comments Sun, 27 Sep 2020 10:09:47 +0000 https://michaelscodingspot.com/?p=4985 ASP.NET Core Attributes and Middleware

Every once in a while you need to add telemetry, logging, or metrics. While necessary, writing this code along with the business logic feels kind of wrong. In these cases, you can utilize attributes and ASP.NET Core middleware.

The post Use Attributes & Middleware in ASP.NET Core for Logging, Telemetry, and Anything Else appeared first on Michael's Coding Spot.

]]>
https://michaelscodingspot.com/attributes-and-middleware-in-asp-net-core/feed/ 4
How I Self-Published a Programming Book and Lived to Tell About It https://michaelscodingspot.com/self-publishing-programming-book/ https://michaelscodingspot.com/self-publishing-programming-book/#comments Mon, 21 Sep 2020 08:29:56 +0000 https://michaelscodingspot.com/?p=4963 Self publishing programming book

About a month ago I released my first book. Besides the actual writing, there are a ton of things involved in publishing a book. There’s the book cover, editing, book formatting, publishing to a marketplace, creating a landing page, and promoting the book. I’ll tell you how I did all those things for better or worse.

The post How I Self-Published a Programming Book and Lived to Tell About It appeared first on Michael's Coding Spot.

]]>
https://michaelscodingspot.com/self-publishing-programming-book/feed/ 9
Assembly Versioning and DLL Hell in C# .NET Framework: Problems and Solutions https://michaelscodingspot.com/dotnet-dll-hell/ https://michaelscodingspot.com/dotnet-dll-hell/#comments Mon, 07 Sep 2020 11:38:37 +0000 https://michaelscodingspot.com/?p=4946 .NET Assembly Versioning Conflicts

In this article, we'll talk about what exactly is DLL Hell, how these kinds of problems can occur, and the best ways to dealing with them.

The post Assembly Versioning and DLL Hell in C# .NET Framework: Problems and Solutions appeared first on Michael's Coding Spot.

]]>
https://michaelscodingspot.com/dotnet-dll-hell/feed/ 2
5 Productivity Tips in Visual Studio That You Should Know https://michaelscodingspot.com/productivity-tips-in-visual-studio/ https://michaelscodingspot.com/productivity-tips-in-visual-studio/#comments Thu, 13 Aug 2020 08:59:30 +0000 https://michaelscodingspot.com/?p=4902 Visual Studio productivity tips

If you're like me, then you're addicted to productivity tools. That's one of the reasons why I love Visual Studio—it has an endless amount of productivity tricks. This post is going to show five such tricks that help in my work every day.

The post 5 Productivity Tips in Visual Studio That You Should Know appeared first on Michael's Coding Spot.

]]>
https://michaelscodingspot.com/productivity-tips-in-visual-studio/feed/ 8
Practical Debugging for .NET Developers is Available! https://michaelscodingspot.com/practical-debugging-published/ https://michaelscodingspot.com/practical-debugging-published/#comments Mon, 03 Aug 2020 17:37:14 +0000 https://michaelscodingspot.com/?p=4793 Practical Debugging for .NET Developers

For almost a year now, I’ve been writing a book about debugging and problem-solving in .NET. I’m pretty upset at whoever said writing a book is just like writing a series of blog posts. That was way more work than I signed up for. But it’s over now and my book Practical Debugging for .NET …

Practical Debugging for .NET Developers is Available! Read More »

The post Practical Debugging for .NET Developers is Available! appeared first on Michael's Coding Spot.

]]>
https://michaelscodingspot.com/practical-debugging-published/feed/ 1
5 Tricks You Should Know About Visual Studio’s Immediate Window https://michaelscodingspot.com/visual-studio-immediate-window/ Wed, 22 Jul 2020 08:30:26 +0000 https://michaelscodingspot.com/?p=4775 Immediate Window tricks with Visual Studio

The Immediate Window looks pretty straightforward, but it hides some cool features. In this post, I’ll show you five tricks you can use with this window that you absolutely should know if you want to debug faster.

The post 5 Tricks You Should Know About Visual Studio’s Immediate Window appeared first on Michael's Coding Spot.

]]>
Understanding How Assemblies Load in C# .NET https://michaelscodingspot.com/assemblies-load-in-dotnet/ https://michaelscodingspot.com/assemblies-load-in-dotnet/#comments Mon, 13 Jul 2020 14:35:47 +0000 https://michaelscodingspot.com/?p=4761 Assembly Loading Binding .NET

We are constantly dealing with libraries and NuGet packages. These libraries depend on other popular libraries and there are a lot of shared dependencies. With a large enough web of dependencies, you'll eventually get into conflicts or hard situations. The best way to deal with such issues is to understand how the mechanism works internally.

The post Understanding How Assemblies Load in C# .NET appeared first on Michael's Coding Spot.

]]>
https://michaelscodingspot.com/assemblies-load-in-dotnet/feed/ 8
Demystifying Memory Profilers in C# .NET Part 3: Memory Pressure https://michaelscodingspot.com/fix-memory-pressure-dotnet/ https://michaelscodingspot.com/fix-memory-pressure-dotnet/#comments Mon, 11 May 2020 15:12:41 +0000 https://michaelscodingspot.com/?p=4604 Memory profilers part 3: Memory pressure

In this article, we'll see how GC activity can cause major performance problems. This phenomenon is called Memory Pressure and we'll see how to deal with it using memory profilers.

The post Demystifying Memory Profilers in C# .NET Part 3: Memory Pressure appeared first on Michael's Coding Spot.

]]>
https://michaelscodingspot.com/fix-memory-pressure-dotnet/feed/ 3
Demystifying Memory Profilers in C# .NET Part 2: Memory Leaks https://michaelscodingspot.com/memory-profilers-for-memory-leaks/ Wed, 29 Apr 2020 08:38:11 +0000 https://michaelscodingspot.com/?p=4578 Memory profilers in .NET using for memory leaks

Memory leaks are very common, hard to notice, and eventually, lead to devastating consequences. The main tool to detect and fix memory leaks is a Memory Profiler. In fact, I believe the most common usage of memory profilers in .NET is exactly for the purpose of fixing memory leaks. In this article, you'll see exactly how to use memory profilers to find the leaky objects, why they are still referenced, and how to solve the problem.

The post Demystifying Memory Profilers in C# .NET Part 2: Memory Leaks appeared first on Michael's Coding Spot.

]]>
Demystifying Memory Profilers in C# .NET Part 1: The Principles https://michaelscodingspot.com/memory-profilers-principles/ https://michaelscodingspot.com/memory-profilers-principles/#comments Wed, 22 Apr 2020 08:20:41 +0000 https://michaelscodingspot.com/?p=4558 Memory Profilers .NET

Memory leaks and GC Pressure cause pretty inconvenient effects like out-of-memory crashes, performance problems, and high memory consumption. Our primary tools when dealing with those issues are memory profilers. They are one of the most important category of tools in .NET troubleshooting, and in this article, you'll see how to use them and extract the most information from them.

The post Demystifying Memory Profilers in C# .NET Part 1: The Principles appeared first on Michael's Coding Spot.

]]>
https://michaelscodingspot.com/memory-profilers-principles/feed/ 1