Clear naming standards in software development significantly enhance code readability, maintainability, and overall quality. Consistent naming reduces cognitive load, facilitates collaboration, and lowers long-term maintenance costs. Ignoring these standards leads to confusion, longer development times, and increased technical debt. Investing in robust naming conventions is essential for professional-grade software development.
Category: .NET Coding Standards
Rock Your Code: Code & App Performance for Microsoft .NET (5th Edition)
The fifth edition of David McCarter's book, "Röck Yöur Cöde: Code & App Performance for Microsoft .NET," is now available on Amazon. It offers practical techniques for enhancing .NET application performance, including coding patterns, memory insights, and benchmarking. This definitive guide is essential for modern .NET developers aiming for speed and scalability.
Rock Your Code: Coding Standards for Microsoft .NET (20th Anniversary Edition)
The 20th Anniversary Edition of Rock Your Code: Coding Standards for Microsoft .NET, authored by David McCarter, is now available on Amazon. This comprehensive guide offers updated standards for .NET 10, best practices, and expert insights, making it essential for software engineers aiming for improved code quality and performance over two decades.
Boosting Loop Performance in .NET: The Simple Trick of Caching Array Length
The post discusses optimizing array iteration in programming by caching the array's length for performance improvements. This method yields a 1.021x performance boost, particularly beneficial for loops executed frequently. The author encourages this technique and recommends their book for more insights on enhancing .NET code performance.
Collection Performance: Introducing FrozenSet in .NET 8: Benefits and Benchmark PerformanceCollection Performance
.NET version 8 introduced the FrozenSet type, offering immutable and hashable set collection with benefits including improved performance, memory efficiency, and thread safety. Benchmarks show comparable performance to List, outperforming HashSet and ImmutableHashSet. However, it is slightly slower than the latter in lookups. FrozenSet offers significant advantages for concurrent applications and memory optimization.
Collection Performance: Enhancing Dictionary Performance with FrozenDictionary
The FrozenDictionary is a thread-safe, immutable, read-only dictionary optimized for fast lookups. It outperforms the Dictionary, reducing iteration and lookup times significantly.
256 Seconds with dotNetDave: Handling Exceptions Part 1 – Reusable Assemblies
This content discusses exception handling in Microsoft .NET, focusing on application layer and reusable assemblies. It offers insights on preventing exceptions and notifying calling code, and references a related book. The principles are noted to be applicable to other programming languages.
Serializing Objects: Efficient Serialization and Deserialization of Collections with JsonSerializer
The article demonstrates the ease of serializing and deserializing collections using JsonSerializer.
Microsoft .NET Code Analysis: Eliminating Dictionary Double Lookups
Using ContainsKey() followed by an indexer on dictionaries results in a double lookup, decreasing performance. This is common anti-pattern. This article will show you how to fix this and increase performance up to 2x.
Optimizing Collection Examination: A Comparative Analysis of Predicate Methods in C#
The article explores four methods for examining items in a collection using predicates, with a focus on performance. A Twitter poll revealed that over 50% of developers favored the LINQ Any() method, prompting the author to verify its efficiency in comparison to other options like Count() and Exists().

You must be logged in to post a comment.