This discusses the principles of defensive programming to enhance software development. It emphasizes error prevention strategies such as input validation, comprehensive error handling, and assumption checking. By adopting these practices, developers can create reliable, maintainable applications, reduce bugs and their associated costs, and improve overall code quality and user satisfaction.
Category: Unit Testing
Boost Your .NET Projects: Mastering Unit Testing with Spargine’s UnitTester Class
The UnitTester class is a valuable addition to the DotNetTips.Spargine.Tester assembly, aiding developers in logging unit test data. It features methods for outputting results to Debug or saving to files. By simplifying property logging and enhancing debugging efficiency, UnitTester significantly improves unit testing workflows for .NET developers.
Boost Your .NET Projects with Spargine: Simplifying Real-World Data Generation for .NET Benchmarking and Testing
In 2019, realistic data generation utilities were developed for performance benchmarking, leading to the creation of the DotNetTips.Spargine.Tester NuGet package. This tool provides robust features like address and person data generation, optimized serialization, and various testing enhancements. Its latest version supports multiple data types and improved realism for effective testing and application development.
Real World Coding Issues: Part 3 – Design, Diagnostics, and Other Common Code Issues
The article discusses real-world coding issues encountered in a contract project. Part 3 covers common coding issues related to design, diagnostics, and other areas, such as globalization, code duplication, and Linux-based development challenges. It emphasizes the importance of code quality, performance, and prioritizing code reviews to ensure a maintainable and efficient solution.
Unit and Benchmark Testing with Random Data in .NET 6 & 7
This article shows how to use the DotNetTips.Utility.Standard.Tester NuGet package to generate random data for use in unit and benchmark testing.
Live Event: Ask dotNetDave Anything!
Join us in this episode of Ask Me Anything Series on July 4, 10:00 am PST with David McCarter as he brings his years of experience as a professional software developer to talk about code quality, code performance, and a lot more. ABSTRACT Ask dotNetDave anything! David McCarter is a Microsoft MVP, C# Corner MVP, … Continue reading Live Event: Ask dotNetDave Anything!
Unit Testing with Random Data
In 2019, while I was working on benchmark tests for my new book on code & app performance, I wanted to use “real-world” data types like a person or a coordinate along with methods for creating random words, email addresses, URLs, etc. After I worked on the code, I thought that most of it could … Continue reading Unit Testing with Random Data
What Can Be Done to Make Code Quality Better?
This article explores the critical issue of code quality in software development. The author, with years of experience in advocating for coding standards, shares insights from fellow developers on how to enhance code quality. Key suggestions include emphasizing unit testing, code comments, and better training, while addressing ego-related challenges in code reviews. The article underscores the importance of fostering a culture of quality and incorporating coding standards into education. It highlights the need for a strong commitment to code quality in today's security-focused software landscape. Ultimately, the article offers actionable ideas for improving code quality within development teams.
dotNetDave Says… If Your Code Is Hard To Unit Test, You’re Doing It Wrong!
Unit testing is vital in software projects, yet often neglected. Many developers avoid writing tests, but they provide necessary confidence and enable safe code changes. Without unit tests, deploying code can lead to significant issues. Responsible software development requires commitment to testing, akin to routine health check-ups, highlighting its essential role in maintaining quality and credibility.
dotNetTips.Utility.Standard Tester
Recently, while working on one of my books, I needed to randomly create data for use in tests and benchmarking of the code. I took what I wrote and created a new NuGet package titled dotNetTips.Utility.Standard.Tester. Below are the major features. Data Models There are a few data models that I have created for use … Continue reading dotNetTips.Utility.Standard Tester

You must be logged in to post a comment.