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



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.


ValueOne


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;



| < 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