|
I have used a similar naming system for a couple of years now and I find it to be very useful. I was originally exposed to it when writing software for the Symbian OS. They have a nice and well thought out way of naming their classes and variables.
Generally I find it that I dont need to read the exact type of the variable (C++ typechecking already enforces this) but that it is more helpful to be able to read things such as the scope of the variable.
|
|
|
|
|
I use Hungarian notation for C++, and camel casing in C#.
Regards
Thomas
Disclaimer: Because of heavy processing requirements, we are currently using some of your unused brain capacity for backup processing. Please ignore any hallucinations, voices or unusual dreams you may experience. Please avoid concentration-intensive tasks until further notice. Thank you.
|
|
|
|
|
underscores and C go together really well, but the only place I use "_" in C# is for global variables.
Really don't see the value in:
private DateTime g_dtCurrent=DateTime.Now();
function DoStuff(){
string l_strMyString = "";
int l_iMyInt = 0;
if(g_dtCurrent > (new DateTime(0,0,0,8,30,0)))
g_willBeLate = true;
}
Cheers,
Simon
sig :: "Don't try to be like Jackie. There is only one Jackie.... Study computers instead.", Jackie Chan on career choices.
article :: animation mechanics in SVG blog:: brokenkeyboards
|
|
|
|
|
A distinction should probably be made between datatype indication conventions and scope conventions.
Anyway, I voted:
Hungarian casing (public=AllCaps, member=smallletters, method-level=m_MemberName)
.NET datatype indicators ( DataTypeCollection, etc)
|
|
|
|