| |
|
 |
Coding Standards - Part 3 - What remains
|
Enumerators and member variables can be made up from several words, the first letter of each word in uppercase and the rest in lowercase. They should normally not consist of more than three words. Acronyms can be used as long as the meaning is obvious.
enum DayType
{
Monday,
Tuesday,
...
};
private:
int Len;
int X,Y;
|
Local variables can consist of several words, using only lowercase. Use underscore to divide words. Use as few words as possible, and use acronyms when needed. Special acronyms like i (index) and x,y (position) are allowed. Parameters should be named in the same way as local variables.
int i, index, x, y;
int x_add;
|
Class names can be made up from several words, the first letter of each word in uppercase and the rest in lowercase. All classes made by eZ systems should begin with eZ.
class eZDialog;
class eZModuleManager;
|
Static variables should be named like member variables, but they must end with an underscore.
Never use global variables, put them in a class and make them static.
Comment List
| Topic: |
Author: |
Time: |
|
Hacking URLS
|
TF Paschall
|
15.12.2001 17:38
|
|
I notice that hacking off "article/" and "articleview/" from the zez.org URLs renders an empty page body.
eZ Publish should provide a default.
|
|
 |
|
|