Coding Best Practices
Welcome to Performance & Best Practices section of C# Corner. In this section, you will find various Performance & Best Practices related source code samples, articles, tutorials, and tips.


  • Quick Tips for writing Clean Code Part-1

    This blog aims on writing clean code and avoid some common mistakes that programmers usually make while writing code.
  • Is Something Wrong With OOP?

    This blog will discuss a few critical points about OOP and we'll be seeing another way to define it.
  • Handling Arithmetic Overflow

    When you are dealing with integer values which are in higher amounts, you might arrive at a situation where the program gives you the wrong output.
  • Performance Tip - Checking For Empty String

    In all my books and conference sessions I talk about the proper way to test if a string is valid. Microsoft .NET has been around for almost two decades.
  • Seven Tips To Increase Your Productivity

    Writing a robust code and finishing the project in a short time are the main characteristics of a professional job, so every developer should focus on his/her productivity to create efficient code in a short time.
  • Rules To Write Clean And Good Unit Tests

    Unit tests should be fast and run quickly. If they won't, then we won't want to run them frequently.
  • Validation Response Pattern

    An interface based pattern to return the appropriate business logic validation outcome.
  • Effective Application Development

    In this blog I would like to share some of my Application Development methodologies which give some more productivity in development.
  • How To Learn A New Computer Programming Language

    This article is about learning a new programming language
  • Five Golden Rules For Better Programming

    Five Golden Rules For Better Programming.
  • Web Application Solution Architecture Naming Conventions

    In this blog, you will be acquainted with Web Application Solution Architecture naming conventions.
  • Bench-marking List vs Dictionary vs HashSet vs SortedSet

    It is always wise to evaluate the performance of datatypes before using it. It will save developer from last minute design change/ code change to address critical issues such as performance / memory.
  • Why Comments Are Important While Writing Code

    This blog is about why comments are important and how they help to understand the code as well as when and where we should use comments.
  • Meaning Of Each HTTP Staus Code

    In this blog, you will learn the meanings of each HTTP staus code we encounter every day.
  • Performance And Memory Tips

    Two things play a very significant role in any application development, and those are the application’s footprint and performance. This article discusses these two concepts.
  • Agile for DevOps

    In this blog you will learn about Agile for DevOps.
  • 3 Effortless Ways To Keep Your Code Clean

    This blog show 3 effortless ways to keep your code clean.
  • Note on Importance of UI in Performance

    Simple UI tricks, such as progress bars, redirecting user's attention using animation, or placing slower loading sections at the bottom of a page or off-screen, can often ‘fix’ a performance problem.
  • Software Engineering Paradigm

    Lets learn about Software Engineering Paradigm.
  • HIPAA (Health Insurance portability and accountability Act)

    Basic rules to be followed for HIPAA compilances.
  • View More