On show #38 of Rockin’ the Code World with dotNetDave, I am ranting about far too many .NET software engineers DO NOT understand how memory management works when it comes to disposable objects! No matter what level of software engineer you are, you need to watch this episode… NOW!
Watch and let me know your comments below or Tweet them to @RockinCodeWorld or @realDotNetDave.
Call to Action
Here are my call to action for this episode. Watch for a full description!
The .NET Compiler & Runtime teams must figure out how to take the developer out of the equation and fast!
If not then…
Visual Studio Analyzers and other tools must find 100% of these issues!
Visual Studio should color (red?) variables that hold IDisposable types!
Visual Studio and the compliers must prevent code like this:
return (TResult)xs.Deserialize(new StringReader(xml));
Please let me know your thoughts by making a comment below.
Start off learning how to deal with Disposable types properly by going to this article: https://dotnettips.wordpress.com/2021/10/15/everything-that-every-net-developer-needs-to-know-about-disposable-types-part-1-properly-disposing-objects/