Re: General Questions

From: Date: Mon, 29 Nov 2004 01:23:16 +0000
Subject: Re: General Questions
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-34629@lists.php.net to get a copy of this message
On Sunday 28 November 2004 05:10 pm, Ammar Ibrahim wrote: > - There are some issues that really shock me when I see them in PEAR, > e.g. using double quotes for strings that contain no variables or > special chars. This is not a CS issue, it's a performance issue. If > using variables in a double quoted string, that's another story, a CS > issue. > The performance difference between double- and single-quoted strings is negligable at best. I'm sure there are many other places where an effort to optimize your code would produce significantly better results. For example, I see people use for/foreach loops to operate on arrays all the time, when there's usually an array_*() function that does the same thing. The risk of breaking working code by fiddling with the quoting style is not worth the miniscule performance benefit you would see, imo. > - Is the source code of the PEAR's website open source? Where can I find > it? > The 'pearweb' cvs module.

Attachment: [application/pgp-signature]
« previous php.pear.dev (#34629) next »