I'm working on creating a set of "defined" rules for how I will develop in the future. I'm confused about how I should name variables in a consistent way that can appear in all of programs. My question is, what do you guys use?
Globals: __<name>
The what? Is camelCase used most often for everything else? What about objects?
Variable Standards
Started by Saint, Apr 26 2007 05:59 AM
5 replies to this topic
#1
Posted 26 April 2007 - 05:59 AM
Hi >> Saint
|
|
|
#2
Posted 27 April 2007 - 08:38 AM
There are a number of standards out there. At work we use a simplified version of hungarian, at home I prefer camelCase. There are several books on programming standards that will address this issue quite thoroughly and can be gotten fairly cheap. I'll try to get the name of my book this weekend.
#3
Posted 12 May 2007 - 01:37 PM
The Elements of C++ Style
There's also
The Elements of C# Style
The Elements of Java Style
There's also
The Elements of C# Style
The Elements of Java Style
#4
Posted 12 May 2007 - 09:40 PM
I've always used camelCase, but I'm thinking about changing to Hungarian Notation. Hungarian notation is almost like camelCase, excepts Hungarian Notation includes the type of the variable in its name.
CamelCase - Wikipedia, the free encyclopedia
Hungarian notation - Wikipedia, the free encyclopedia
CamelCase - Wikipedia, the free encyclopedia
Hungarian notation - Wikipedia, the free encyclopedia
#5
Posted 14 May 2007 - 08:15 AM
Hungarian can be useful, but it can also get REALLY nuts. I think a limited version is useful.
#6
Posted 14 May 2007 - 08:25 AM
WingetPanther said:
Hungarian can be useful, but it can also get REALLY nuts. I think a limited version is useful.
I'll probably only using them with variables/objects like integers, classes, booleans, etc.
int iItems; class CControl; bool bStatus; // ...That's enough for me.


Sign In
Create Account


Back to top









