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.

RECENT POSTS

  • Rudra Singh

    What Are Some Of The Best Ways To Learn Programming

    What are some of the best ways to learn programming ? Before getting started into computer program, very first you need to be mentally prepare that don’t give-up, there is no substitute/shortcut o...
    Rudra Singh Mar 31, 2021
  • Rudra Singh

    What Is The Right Approach To Solve A Programming Problem

    In this blog, you will learn how does one become a great problem solver as well as Good Programmer.
    Rudra Singh Mar 23, 2021
  • Nilanjan Dutta

    Clean Code - Single Level Of Abstraction

    A clean code perspective with Single Level of Abstraction.
    Nilanjan Dutta Dec 21, 2020
  • Jin Vincent Necesario

    Klocwork - Get Started With A Static Code Analyzer

    This article helps you get started with a static code analyzer. It begins with the theoretical concepts and ends with a static code analyzer's practical usage using Klocwork.
  • Mahesh Chand

    Copying Data from one DataTable to Another using ImportRow

    I recently have been engaged in an assignment where I had to copy large chunks of data from one DataTable to another. This article talks about how DataTable.ImportRow method may be more effective t...
    Mahesh Chand Oct 30, 2020
  • Shweta Lodha

    Tips For Effective Code Reviews

    This article will list down most common and important tips which one needs to take care while performing code reviews
    Shweta Lodha Oct 13, 2020
  • Atul Sharma

    Measuring Code Quality With Visual Studio

    In this article, you will learn how to measure code quality with Visual Studio.
    Atul Sharma Aug 27, 2020
  • Atul Sharma

    NDepend - A Complete Static Code Analysis Tool

    A few months ago, I came across one static code analysis tool named NDepend and found this to be the next level of static code analysis
    Atul Sharma Aug 20, 2020
  • Monica Rathbun

    Coding Standards Gone Bad

    In this article, you will learn about the Coding Standards Gone Bad.
    Monica Rathbun Apr 23, 2020
  • Bhawna Tuteja

    Memory Management Tips for Various Technologies

    Memory leakage and management are very common for any application. Here are a few tips for various applications.
    Bhawna Tuteja Feb 05, 2020
  • Bhawna Tuteja

    Code Health Explained

    This post explains a few measures of success that contribute to code quality.
    Bhawna Tuteja Jan 29, 2020
  • Bhawna Tuteja

    Elements of a Good Test Automation Framework

    This blog looks at the elements that an automation framework should have.
    Bhawna Tuteja Jan 29, 2020
  • David Mccarter

    What Can Be Done To Make Code Quality Better

    In this article, you will learn what can be done to make code quality better.
    David Mccarter Dec 30, 2019
  • David Mccarter

    dotNetDave Says… If Your Code Is Hard To Unit Test, You’re Doing It Wrong

    Unit testing is something very important for any project. With that said, I rarely see it done in projects or done correctly. How can you push the code to quality assurance or production without kn...
    David Mccarter Oct 30, 2019
  • Dhanashri Zirape

    Best Coding Practices - Part One

    This blog sums up a few best practices while naming a variable/ method/ class.
    Dhanashri Zirape Jun 16, 2019
  • David Mccarter

    Code Quality Is A Feature, Not An Afterthought

    In this article you will learn that code quality is a feature, not an afterthought.
    David Mccarter Jun 10, 2019
  • Akshay Patel

    C# Programming Performance Tips - Part Six - Array Length

    In this blog, we will see how to use Array.Length before iterating an array.
    Akshay Patel May 16, 2019
  • Akshay Patel

    C# Programming Performance Tips - Part Five - List.Count() Vs List.Count

    In this blog, we will do the benchmarking for List.Count() method and List.Count property.
    Akshay Patel May 16, 2019
  • Akshay Patel

    C# Programming Performance Tips - Part Four - List.Count() Vs List.Any()

    In this blog, we will compare the execution time between List.Count() and List.Any().
    Akshay Patel May 16, 2019
  • Akshay Patel

    C# Programming Performance Tips - Part Three - Adding Strings

    In this blog, we will see a better way of adding two or more string variables.
    Akshay Patel May 16, 2019
  • Akshay Patel

    C# Programming Performance Tips - Part Two - String Equals

    In this blog, we will see how we can avoid null reference exception while using the String.Equals method.
    Akshay Patel May 16, 2019
  • Akshay Patel

    C# Programming Performance Tips - Part One - String Split

    In this blog, we will see the usage of String.Split method in a optimized way.
    Akshay Patel May 16, 2019
  • Bechir Bejaoui

    Some Real Differences Between Structures and Classes

    This article lists some differences between classes and structures. In this article, we will see what is the difference between a structure and a class.
    Bechir Bejaoui May 07, 2019
  • Atul Sharma

    All About OWASP #3 - Sensitive Data Exposure

    In this part of the study of OWASP Top 10 Threats, we will understand Threat # 3 – Sensitive Data Exposure.
    Atul Sharma Apr 24, 2019
  • Atul Sharma

    All About OWASP #1 - SQL Injection Attack

    Considering security as the most important aspect of an application and as the First step in SOUND Programming Methodology, we will be covering SQL Injection Attack and Prevention.
    Atul Sharma Apr 24, 2019
  • View More