|
-
February 2nd, 2005, 06:30 AM
#11
Re: Coding standards
Andreas Masur:
An example:
Code:
void DoSometing(int userid) //eg. 1234
{ ...}
void DoSomething(string userid); //eg. Smith
{ ... }
....
MyClass.DoSomething(uid);
"MyClass.DoSomething(uid);" Try to guess which one "DoSometing" is called... .Of course U can moving around a mouse and waits for InteliSence to explain ... But (as I said before) it could be printed on paper or that fragment could be sended to U by email...
But if U have HN variable than "MyClass.DoSomething(szUid);" helps U a litle bit, isn't it?
Of course - As I wrote before Hungarian notation is good as long as U use it consistently.
Best regards,
Krzemo.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|