Latest

Archive

Community news

C++

Communities and Content

Databases

Editorials

Emacs

General

HTML

Java

Notices

PHP

XML

Apache

C++

Database

General

HTML

Java

Javascript

Linux

Object oriented programming

Open source

Perl

PHP

Python

Ruby

SOAP

XML

Suggest a link

Advertise on zez

Contribute

Contact us

About zez


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.

static int RefCount;


Never use global variables, put them in a class and make them static.


<< Previous page | 1 | < 2 > | 3 | 4 | 5 | Next page >> | Printer-friendly page |

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.




Forgot your password?

Register a new user

Results

Polls