cvs: peardoc /en/chapters standards.xml

From: Date: Tue, 21 May 2002 21:38:29 +0000
Subject: cvs: peardoc /en/chapters standards.xml
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-4022@lists.php.net to get a copy of this message
mj Tue May 21 17:38:29 2002 EDT Modified files: /peardoc/en/chapters standards.xml Log: * Add Tomas' suggestions to the coding standards. Index: peardoc/en/chapters/standards.xml diff -u peardoc/en/chapters/standards.xml:1.6 peardoc/en/chapters/standards.xml:1.7 --- peardoc/en/chapters/standards.xml:1.6 Wed Feb 13 15:38:47 2002 +++ peardoc/en/chapters/standards.xml Tue May 21 17:38:29 2002 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1" ?> -<!-- $Revision: 1.6 $ --> +<!-- $Revision: 1.7 $ --> <chapter id="standards"> <title>Coding Standards</title> <note> @@ -351,6 +351,13 @@ <sect1 id="standards.naming"> <title>Naming Conventions</title> + + <simpara> + Generally speaking, the names of classes, functions and variables + should always be descriptive enough to easily tell the reader of + the code what they are used for. + </simpara> + <sect2> <title>Classes</title> <para> @@ -430,6 +437,18 @@ name and another underscore. For example, the PEAR package uses a global variable called $_PEAR_destructor_object_list. </para> + </sect2> + + <sect2> + <title> + Predefined values <constant>true</constant>, + <constant>false</constant>, <constant>null</constant> + </title> + + <para> + PHP's built-in values <constant>true</constant>, + <constant>false</constant> and <constant>null</constant> must + be written in lower-case.</para> </sect2> </sect1>

« previous php.pear.cvs (#4022) next »