Session
Röck Yoür Cöde: Everything That Every .NET Developer Needs to Know About Disposable Types
Is your application or service sluggish? Is it devouring excessive memory? Are you frequently rebooting servers or services without understanding the cause? Look no further, as I have the answers! Having scrutinized millions of lines of code from Microsoft .NET projects, I can unequivocally state that the primary issue lies in mishandling disposable types.
With Microsoft .NET boasting a two-decade tenure, understanding the intricacies of memory management within the runtime is paramount for every developer. Ignorance in this area not only leads to performance bottlenecks but can also result in virtual memory leaks. Although .NET, since its inception in the late '90s, doesn't typically suffer from memory leaks in the traditional sense, it can inadvertently cause virtual memory leaks.
In this enlightening session, I will present tangible examples and metrics derived from real-world production scenarios. Failing to address these issues at the code's inception can prove exceedingly costly and time-consuming to rectify later if they are addressed at all. Key topics covered include proper disposal of objects, correct implementation of the IDisposable interface for custom types, and a demonstration of tools designed to identify these critical issues. Join me as we delve into the intricacies of .NET memory management and equip ourselves with the tools necessary to optimize performance and mitigate memory-related pitfalls.
This session is based on information from the 8th edition of Rock Your Code: Coding Standards for Microsoft .NET available on Amazon: https://bit.ly/CodingStandards8.
After attending this session, you will be a Code Shark™ just like me! This is a segment from my series titled “Improving Code Quality… One Developer at A Time”.
Objectives:
• Understanding Memory Management in .NET: This session aims to provide attendees with a comprehensive understanding of memory management principles within the .NET framework, including how memory is allocated, utilized, and deallocated.
• Identifying Common Pitfalls: The session will highlight common mistakes and pitfalls that developers may encounter when handling disposable types in .NET applications. Attendees will learn how these issues can impact performance and potentially lead to memory leaks.
• Equipping Developers with Tools and Techniques: Attendees will gain practical knowledge and tools to effectively address memory management issues in their .NET projects. This includes learning about the proper disposal of objects, implementing the IDisposable interface correctly, and utilizing tools for identifying and resolving memory-related issues in code.
Unlock the secrets of .NET memory management! Learn to avoid performance bottlenecks, memory leaks, and virtual memory issues with practical insights and tools.
David McCarter
Microsoft MVP (Developer Technologies), Software Architect, Speaker, Trainer, Inventor, Mentor & Host of Rockin’ the Code World show
San Diego, California, United States
Links
Please note that Sessionize is not responsible for the accuracy or validity of the data provided by speakers. If you suspect this profile to be fake or spam, please let us know.
Jump to top