|
||||||
| General Programming Non language specific, Assembly, Linux/Unix, Mac and anything not covered in other topics. Talk about Programming Theory here. |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|||
|
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?
__________________
Hi >> Saint |
| Sponsored Links |
|
|
|
|||||
|
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.
__________________
CodeCall Blog | CodeCall Wiki | Shareware | Linux Forum Programming is a branch of mathematics. |
|
|||||
|
The Elements of C++ Style
There's also The Elements of C# Style The Elements of Java Style
__________________
CodeCall Blog | CodeCall Wiki | Shareware | Linux Forum Programming is a branch of mathematics. |
|
|||||
|
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 |
|
|||||
|
Hungarian can be useful, but it can also get REALLY nuts. I think a limited version is useful.
__________________
CodeCall Blog | CodeCall Wiki | Shareware | Linux Forum Programming is a branch of mathematics. |
| Sponsored Links |
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Using input to change a variable? | Plutonic | Java Help | 3 | 07-17-2007 05:02 PM |
| Standards without control? | martinig | General Programming | 3 | 01-18-2007 10:57 AM |
| Java:Tutorial - The Variable | John | Java Tutorials | 0 | 12-09-2006 10:59 AM |
| Variable Names | Paradine | PHP Forum | 3 | 11-03-2006 12:29 PM |
| Variable to Debug Window | Void | C# Programming | 3 | 07-04-2006 09:26 AM |
| WingedPanther | ........ | 2753.6 |
| Xav | ........ | 2704 |
| Brandon W | ........ | 1702.32 |
| John | ........ | 1207.73 |
| marwex89 | ........ | 1175.24 |
| morefood2001 | ........ | 966.05 |
| dcs | ........ | 655.75 |
| Steve.L | ........ | 475.59 |
| orjan | ........ | 418.58 |
| Aereshaa | ........ | 383.54 |
Goal: 100,000 Posts
Complete: 98%