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

  • 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
  • Atul Sharma

    All About OWASP #2 - Broken Authentication

    In this article, we will learn about Secure Programming of SOUND programming methodology. We will cover Broken Authentication from OWASP's top 10 security threats.
    Atul Sharma Apr 24, 2019
  • Atul Sharma

    An Effective Coding And Code Review Technique

    Coding and Code review are the most basic building blocks of any software product. Any lapse may severely affect the schedule, quality, and of course the cost. Not only in the review but a few issu...
    Atul Sharma Apr 02, 2019
  • Amit Tyagi

    Quick Tips For Writing Clean Code - Part Two

    This blog aims at writing clean code and avoiding some common mistakes that programmers usually make while writing code.
    Amit Tyagi Mar 25, 2019
  • Amit Tyagi

    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.
    Amit Tyagi Mar 08, 2019
  • Saurabh

    Generics in C# 2.0

    In this article, I specifically talk about Generics and how they improve upon arraylists and how they solve the issues posed by ArrayLists.
    Saurabh Mar 05, 2019
  • Matthew Cochran

    C# Heap(ing) Vs Stack(ing) In .NET - Part Three

    Having a basic understanding of how memory management works will help explain the behavior of the variables we work with in every program we write. In this article we’ll cover an issue that arises...
    Matthew Cochran Jan 05, 2019
  • Shivprasad

    Best Practices No 5: Detecting .NET application memory leaks

    In this article we are going to detect the .NET application memory leaks.
    Shivprasad Dec 13, 2018
  • Mehreen Tahir

    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.
    Mehreen Tahir Dec 11, 2018
  • Mehreen Tahir

    Ineffective Coding Habits - What To Avoid

    In this article, I'll be talking about some habits of programmers which are not so effective. We'll be looking into what to avoid and how to code effectively.
    Mehreen Tahir Nov 26, 2018
  • David Mccarter

    Presenting Code Samples With A Dark Theme...Please Do Not

    For all of you who code using apps like Visual Studio or VS Code, please don’t present code in a meeting or conference session using a dark theme! I know I am going to get a lot of push back from t...
    David Mccarter Nov 12, 2018
  • Karthikeyan Sekar

    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.
    Karthikeyan Sekar Oct 30, 2018
  • Jiteendra Sampathirao

    String and StringBuilder Classes

    Here I'm going to tell you about what is String and StringBuilder and what the differences between String and StringBuilder classes.
  • Sahil Sharma

    How To Write Effective Code

    How To Write Effective Code. The key to writing effective code is Delete Unnecessary Code, use clean code, learn coding from masters, Meaningful Code Commenting, Debug code and Trace, Unit Testing,...
    Sahil Sharma Sep 20, 2018
  • Sai Kumar Koona

    How To Improve Execution Performance Of An Application

    For every application could be small or medium or a big enterprises application the major non-functional requirement will be a good code performance. In some cases, companies will hire a special te...
    Sai Kumar Koona Aug 31, 2018
  • David Mccarter

    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.
    David Mccarter Aug 22, 2018
  • 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 15, 2018
  • Ahmad Mozaffar

    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 ...
    Ahmad Mozaffar May 10, 2018
  • Dinesh  Kushwaha

    How To Implement TDD In C# Using NUnit Testing With NInject DI

    How to implement TDD (Test driven development) in c# (Csharp) using Nunit testing with NInject DI?
    Dinesh Kushwaha Apr 23, 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 Feb 17, 2018