Re: dev style guide
| From: | Mike Migurski | Date: | Tue, 05 Aug 2003 20:18:04 +0000 |
| Subject: | Re: dev style guide | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-158346@lists.php.net to get a copy of this message | ||
>Is there a style guide for coding practices used when creating code to be
>shared with the community?
PEAR has some, http://pear.php.net/manual/en/standards.php
I gave them a cursory glance, and they seem to be pretty solid -- in line
with standards that I used for the past year or so after realizing that my
old code was nearly indecipherable. They use the One True Brace Style,
which is encouraging:
function fooFunction($arg1, $arg2 = '')
{
if (condition) {
statement;
}
return $val;
}
---------------------------------------------------------------------
michal migurski- contact info and pgp key:
sf/ca http://mike.teczno.com/contact.html