Do you use more meaningful names than Hungarian short form?
20/10/2010 7:56 PM by
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.
DateTime dt = new DateTime.Now();
DataSet ds = new DataSet();
// It could be confused with Date time.
DataTable dt = ds.Tables;
- Bad code - Without meaningful name.
DateTime currentDateTime = new DateTime.Now();
DataSet employmentDataSet = new DataSet();
DataTable ContactDetailsDataTable = ds.Tables;
- Good code - With meaningful name.
More information on naming convention.
Do you feel this rule needs an update?