addition die "Pear Coding Standards"
| From: | Ralf Kotthoff | Date: | Tue, 27 Jul 2004 13:41:16 +0000 |
| Subject: | addition die "Pear Coding Standards" | ||
| Groups: | php.pear.webmaster | ||
| Request: | Send a blank email to pear-webmaster+get-2869@lists.php.net to get a copy of this message | ||
Hi,
IMHO there is an heavily needed addition to the "Coding Standards":
one should write
$name[1]
and not:
$name [1]
when using arrays.
Maybe also that there should be spaces before and after a "." when
used to link strings:
"bingo " . $value . " bongo"
and not:
"bingo ".$value." bongo"
I just spent hours trying to read code by some dude that seriously
codes:
echo "first ".$value [1]."second".$value [2]." third";
I get nuts trying to read that!
thanks for your time.
Ralf / MZEE.com