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.

Articles

  • Ashish Vishwakarma

    Git For Absolute Beginners With Command Line Interface

    Explore Git via CLI like programmers, and learn black magic done by Git GUI clients.
    Ashish Vishwakarma Jun 19, 2018
  • Amit Kumar

    Best Practices Of Writing C# Code

    Anyone can write code with a few months of programming experience. But some developers know the coding standard and naming convention but not everyone follows the best practices
    Amit Kumar May 12, 2018
  • David Mccarter

    Defensive Programming - Let Type Checking Work For You

    Since I have been a speaker and a teacher, I have always stressed the importance of practicing proper object-oriented programming (OOP) techniques. If you don’t practice OOP, no matter what languag...
    David Mccarter Mar 19, 2018
  • David Mccarter

    Five Easy Rules For Your Source Control Repository

    I have been using source control programs for a very long time. I believe the first one was Visual Source Safe (don’t laugh, it was a painful experience). Early in my career and throughout I have l...
    David Mccarter Mar 04, 2018
  • Gaurav Gahlot

    When To Use "Var" As A Type

    It has been quite a long time since "var" was introduced, yet it is still a topic of debate among .net developers.
    Gaurav Gahlot Jul 05, 2017
  • Karishma Gajula

    SQL Coding Best Practices

    While executing your procedure, the system will first scan through all system procedures and then user defined procedures. This means that the procedure might take more time for execution thus decr...
    Karishma Gajula Feb 14, 2018
  • Sagar Shinde

    Code Metrics Cyclomatic Complexity

    Let's learn about Code Metrics Cyclomatic Complexity in this write-up.
    Sagar Shinde Dec 28, 2017
  • Bechir Bejaoui

    Some Real Differences Between Structures and Classes

    This article lists some differences between classes and structures.
    Bechir Bejaoui Mar 02, 2009
  • David Mccarter

    Confessions Of An Angry Programmer

    Recently, after doing the keynote session about code quality at a conference in Denver, I received a comment from one of the attendees. He said my session was “too much angry coder”. After receivin...
    David Mccarter Jul 23, 2017
  • Pankaj Sapkal

    Best Practices For MVC

    Add a class library project to the solution, named Store.Model. This library is where we ‘ll keep all of our domain objects. Entity Framework will count on them in order to build the database but w...
    Pankaj Sapkal Jul 14, 2017
  • David Mccarter

    My Workflow Before I Submit Code Changes

    In this article, you will learn about my Workflow before I submit code changes.
    David Mccarter Jun 25, 2017
  • Gul Md Ershad

    A Day With A Software Engineer Who Changes Text Labels Only

    This article will explain the way Software Engineers, who never focus on technical learning and remain busy in text label changing only.
    Gul Md Ershad Jun 16, 2017
  • Sahil Sharma

    How To Write Effective Code

    How To Write Effective Code.
    Sahil Sharma Jun 03, 2017
  • Hr Rony

    Stop Using VAR Everywhere And Think Before Using Underscore With Private Variable In C#

    When to use underscore(_) or not with the private member variable; why we shouldn't use var everywhere; when must we use 'var'; when can't 'var' be used. Why we need to foll...
    Hr Rony Jun 06, 2017
  • Afzaal Ahmad Zeeshan

    Functions In Functional Programming Vs Procedural Programming

    In this article, I will show you what a basic function is and the concept of the function, as it is used in functional programming and how procedural (or imperative) languages might take them wrong.
  • Bryian Tan

    Coding Challenge - Lesson Learned

    Here, I am sharing some note from the coding challenge: NumberStyles, Tuple, Generic Extension Method, Group string from right to left.
    Bryian Tan Feb 22, 2017
  • Gul Md Ershad

    Static Variable - A Code Smell

    This article will explain the disadvantages of Static variables.
    Gul Md Ershad Jan 16, 2017
  • Gul Md Ershad

    Branching Over A "Type Code" - A Code Smell

    This article will explain how the branching over a type code is a serious type of code smell.
    Gul Md Ershad Jan 13, 2017
  • Gul Md Ershad

    The Law Of Demeter

    This article will explain several pros and cons of the Law of Demeter.
    Gul Md Ershad Jan 12, 2017
  • Gul Md Ershad

    Pros And Cons Of Code Refactoring

    Code Refactoring is an important part of software development. This article will explain the benefits and drawbacks of code refactoring.
    Gul Md Ershad Jan 09, 2017
  • View More