Do you use more meaningful names than Hungarian short form?
  v3.0 Posted at 20/10/2010 7:56 PM by System Account
Hungarian notation is used in VB6. In .NET, there are over 35,000 classes, so we can't just call them with three letter short form. We would suggest the developer use the full class name as  in example below. As a result, the code will be much easier to read and follow up.
                          //Bad Code

DateTime dt = new DateTime.Now();
DataSet ds = new DataSet();
// It could be confused with Date time.
DataTable dt = ds.Tables[0];
Bad code - Without meaningful name.
                     //Good Code

DateTime currentDateTime = new DateTime.Now();
DataSet employmentDataSet = new DataSet();
DataTable ContactDetailsDataTable = ds.Tables[0];
Good code - With meaningful name.

More information on naming convention.


We have a program called SSW Code Auditor to check for this rule

Related rules

    Do you feel this rule needs an update?

    If you want to be notified when this rule is updated, please enter your email address: