| |
|
 |
Coding Standards - Part 3 - What remains
|
In the third and final issue we'll dig into the details regarding naming conventions, functions, name spaces, classes, comments and exceptions.
Naming conventions
All names must be written in English, and be grammatically correct. Avoid names that don't mean anything, like foo and tmp. Any numbers in a name must be written using letters, not numbers, unless there is a good reason not to.
Functions can be made up from several words, the first letter of each word in uppercase and the rest in lowercase. The first word must be all lowercase. Acronyms should not be used.
void setText( const QString &text );
|
Constants are written in uppercase, multiple words divided by underscore.
const float PI = 3.1415;
const int MAGIC_NUMBER = 42;
|
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.
|
|
 |
|
|