cvs: php-src(PHP_5_1) / CODING_STANDARDS

From: Date: Sun, 27 Nov 2005 11:06:07 +0000
Subject: cvs: php-src(PHP_5_1) / CODING_STANDARDS
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-35407@lists.php.net to get a copy of this message
helly Sun Nov 27 06:06:07 2005 EDT Modified files: (Branch: PHP_5_1) /php-src CODING_STANDARDS Log: - MFH Synch with what we decided for 5 and what we are practicing since 5 http://cvs.php.net/diff.php/php-src/CODING_STANDARDS?r1=1.32&r2=1.32.4.1&ty=u Index: php-src/CODING_STANDARDS diff -u php-src/CODING_STANDARDS:1.32 php-src/CODING_STANDARDS:1.32.4.1 --- php-src/CODING_STANDARDS:1.32 Fri Jan 30 05:15:24 2004 +++ php-src/CODING_STANDARDS Sun Nov 27 06:06:07 2005 @@ -148,20 +148,19 @@ 'buildsomewidget' 'getI()' -[7] Classes should be given descriptive names. Avoid using abbreviations - where possible. Each word in the class name should start with a capital - letter, with words underscore delimited. The class name should be prefixed - with the name of the 'parent set'. +[7] Classes should be given descriptive names. Avoid using abbreviations where + possible. Each word in the class name should start with a capital letter, + without underscore delimiters (CampelCaps starting with a capital letter). + The class name should be prefixed with the name of the 'parent set' (e.g. + the name of the extension). Good: 'Curl' - 'Foo_Bar' + 'FooBar' Bad: 'foobar' 'foo_bar' - 'FooBar' - Syntax and indentation ----------------------

« previous php.cvs (#35407) next »