Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Coding guidelines + Best Practices? [closed]

Tags:

I couldn't find any question that directly applies to my query so I am posting this as a new question. If there is any existing discussion that may help me, please point it out and close the question.

Question:

I am going to do a presentation on C# coding guidelines but it is not supposed to limit to coding standards.

So I have a rough idea but I think I need to address good programing practices. So the contents will be something like this.

  1. Basic coding standards - Casing, Formatting etc.

  2. Good practices - Usage of Hashset over other data structures, String vs String Builder, String's immutability and using them effectively etc

Really I would like to add more good practices (Especially to improve the performance.) So like to hear some more good practices to be used with C#. Any suggestions??? (No need of large descriptions :) Just the idea is sufficient.)

like image 670
Chathuranga Chandrasekara Avatar asked May 07 '10 07:05

Chathuranga Chandrasekara


People also ask

What is the difference between coding standards and coding guidelines?

All functions that encountering an error condition should either return a 0 or 1 for simplifying the debugging. On the other hand, Coding guidelines give some general suggestions regarding the coding style that to be followed for the betterment of understandability and readability of the code.

What does best practices mean in programming?

Coding best practices are a set of informal rules that the software development community employs to help improve software quality.

What is the coding standards for methods?

Coding Standards for Methods: Usually method name should either be verb or verb noun combination starting with lower letter. If it contains multiple word than every inner word should start with uppercase. Coding Standards for Variables: Usually variable name should be noun starting with lowercase letter.


1 Answers

Coding Guidelines for CSharp 3.0 and 4.0

IDesign Coding Standards

Lance Hunt's C# Coding Standards

Brad Abrams' Internal Coding Guidelines

Unsurprisingly, I just found a SO question: C# Coding standard / Best practices

like image 118
Mitch Wheat Avatar answered Nov 10 '22 04:11

Mitch Wheat