[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

C#.NET 3.5 Code review checklist

Posted on 2013-01-09
5
Medium Priority
?
2,497 Views
Last Modified: 2013-01-10
I would like to come up with C#.NET 3.5 Code review checklist such as Use Properties instead of variables, Use stringbuilder to combine more string values together, Use using block to open connection and so on. Please do share your thoughts to make a complete list. If you have entire list that would be great.


Please note that I'm using .NET Windows Application NOT asp.net.
0
Comment
Question by:Easwaran Paramasivam
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 19

Accepted Solution

by:
Rikin Shah earned 1600 total points
ID: 38761950
0
 
LVL 19

Assisted Solution

by:Rikin Shah
Rikin Shah earned 1600 total points
ID: 38761957
Hi,

Download this pdf file, it contains most rules-
http://www.tiobe.com/content/paperinfo/gemrcsharpcs.pdf
0
 
LVL 45

Expert Comment

by:AndyAinscow
ID: 38761962
Just being pedantic - aren't properties in reality variables.  I take it you mean that variables should be protected or private and use get/set accessors to control access to these variables.
0
 
LVL 75

Expert Comment

by:käµfm³d 👽
ID: 38762750
Use stringbuilder to combine more string values together
For this, I hope you mean for a large number of "combines." IIRC, for four or less concatenations, it's more performant to just do the concatenation.

@AndyAinscow
Just being pedantic - aren't properties in reality variables.
Well at a technical level, they are really getter and setter methods (thanks to the compiler). But I suppose most of us think of them as akin to variables (myself included).  : )
0
 
LVL 16

Author Closing Comment

by:Easwaran Paramasivam
ID: 38762779
Thanks.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…

656 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question