13 min read
10 Tips for Writing Effective Unit Tests in .NET
Learn essential tips for writing effective unit tests in .NET to enhance code reliability, catch bugs early, and streamline development.
Read article
The notebook
Search 45 articles by title, topic, or a word from the post.
All articles
13 min read
Learn essential tips for writing effective unit tests in .NET to enhance code reliability, catch bugs early, and streamline development.
Read article
8 min read
Learn essential unit testing practices in .NET to enhance code reliability, maintainability, and catch bugs early.
Read article
6 min read
Learn how to set up YARP for effective load balancing in .NET applications, enhancing performance and reliability for backend services.
Read article
6 min read
Learn how to implement message queues in .NET Core for improved scalability and reliability in your applications.
Read article
2 min read
When deploying a .NET 9 application behind Azure Front Door with response compression enabled, you might encounter unexpected issues with static files, such as HTTP 416 Range Not Satisfiable errors. These...
Read article
9 min read
Learn essential techniques for effective error handling in C# multithreaded applications to ensure stability and reliability.
Read article
14 min read
Learn best practices for managing the Large Object Heap in .NET to optimize memory usage and improve application performance.
Read article
13 min read
Explore the advantages, limitations, and best practices for using static classes in C# to streamline your coding and enhance performance.
Read article
9 min read
Learn effective strategies for handling JSON parsing errors in .NET applications, including custom converters and middleware solutions.
Read article
12 min read
Learn how C# exception filters improve error handling with precise conditions, preserving stack traces, and enhancing code readability.
Read article
12 min read
Learn to set up a CI/CD pipeline for .NET projects with GitHub Actions, covering workflows, triggers, testing, and deployment strategies.
Read article
9 min read
Discover how C# named arguments enhance code clarity, flexibility, and readability, making your methods easier to manage and understand.
Read article
14 min read
Explore 10 essential ASP.NET MVC ViewModel patterns to optimize data handling between models and views, enhancing your application's performance.
Read article
14 min read
Explore Constructor Dependency Injection in C# for improved code flexibility, testing, and maintainability. Learn key concepts and practical examples.
Read article
7 min read
Discover effective techniques to reduce WCF message sizes, enhance performance, and optimize your services with our comprehensive guide.
Read article
8 min read
Learn best practices for Azure Key Vault logging to enhance security, monitor access, and maintain compliance effectively.
Read article
7 min read
Explore essential tools and techniques for effective WCF performance monitoring, ensuring optimal service performance and quick issue resolution.
Read article
11 min read
Optimize your .NET database performance with these 10 essential indexing best practices. Learn how to balance reads and writes effectively.
Read article
12 min read
Explore effective API versioning strategies in Azure API Management, including best practices, tools, and methods for seamless integration.
Read article
11 min read
Discover essential rollback and recovery practices for .NET applications to ensure stability and minimize downtime during deployments.
Read article
10 min read
Discover how method overloading in C# enhances code flexibility and readability with practical examples and best practices.
Read article
14 min read
Learn how to securely integrate Azure Key Vault with ASP.NET Core for improved security and centralized secret management.
Read article
11 min read
Discover best practices for creating effective API documentation in 2024, including tips on using OpenAPI, interactive features, and AI tools.
Read article
7 min read
Stay updated on .NET security with essential updates, best practices, and tools to protect your applications from evolving threats.
Read article
11 min read
Explore 6 effective methods for exception handling in ASP.NET MVC to enhance stability and user experience in your applications.
Read article
11 min read
Learn how to update SSL certificates in Azure App Service to ensure secure connections and avoid service interruptions.
Read article
15 min read
Explore ASP.NET Web API routing with practical examples, covering convention-based and attribute routing, best practices, and troubleshooting tips.
Read article
9 min read
Discover best practices for exception handling in WinForms applications to improve user experience and application reliability.
Read article
5 min read
Discover essential dependency injection best practices for .NET, enhancing flexibility, maintainability, and testability in your applications.
Read article
8 min read
Discover how Dependency Injection in .NET Core enhances code quality, modularity, and testability with practical examples and best practices.
Read article
2 min read
Discover how to leverage C# SortedList for efficient key-value storage, automatic sorting, and fast lookups in your applications.
Read article
6 min read
Learn how to implement property injection in C# for flexible dependency management, including examples and tips for avoiding common pitfalls.
Read article
4 min read
Discover the differences between NUnit, xUnit, and MSTest to choose the right .NET testing framework for your project needs.
Read article
10 min read
Explore the key .NET development trends for 2024, including AI integration, cloud readiness, and microservices adoption for modern applications.
Read article
2 min read
Exploring C# 12: Embracing Type Aliases for Cleaner Code As a dedicated C# developer, I’m thrilled to delve into one of the most exciting features coming with C# 12—type aliases. This new capability is a...
Read article
2 min read
Converting GUID’s to Base36 and back again GUID’s, or Globally Unique Identifiers, are a common sight in URLs, used for identification or referencing specific resources. However, their traditional...
Read article
3 min read
8 min read
Like most, I’ve been playing around with the awesome capabilities of AI for developers. Recently we had to develop a small class library that would act as a specialized cache. Since I had a little extra...
Read article
6 min read
It’s been forever since I have posted a developer blog, to the point that I almost considered this site dead. However, once in a while you hit a problem that you spend just enough time on you feel compelled...
Read article
1 min read
Did you know that you can assign the value of an Enum from a different one?
Read article
1 min read
Complicated data structures like Dictionaries can be difficult to two-way bind in a Razor page. Here's a quick sample showing you exactly how to do it
Read article
2 min read
An enhanced Razor helper tag to display a Gravatar images or your optional locally uploaded headshot.
Read article
2 min read
Learn how to support AJAX during exception handling in your .NET Core Razor and MVC pages. Optionally return a Json result instead of redirecting.
Read article
4 min read
Given a EFCore entity object that has a navigation property, and the schema is built for a one-to-many relationship, but you want a navigation property to represent a single record based on a specific filter.
Read article
1 min read
I’ve been writing code for 35+ years. Sitting on this domain name for 15 of them. Time to give back. Time to start blogging. This blog site will be all about solving specific coding challenges that I bump...
Read article