Re: If the first four characters are "0000", then do {} - timing tests

From: Date: Wed, 27 Jan 2010 14:41:00 +0000
Subject: Re: If the first four characters are "0000", then do {} - timing tests
References: 1 2 3 4 5 6 7 8  Groups: php.general 
Request: Send a blank email to php-general+get-301548@lists.php.net to get a copy of this message
On Tue, Jan 26, 2010 at 19:48, Daevid Vincent <daevid@daevid.com> wrote: > > Another thing I just noticed, is that we (that is Dan and I) should NOT > have used count() > This is bad form and wasted cycles. This is certainly correct, but it should also be noted that my original code used it once (thus, it was in fine form) and it was only to demonstrate a small field of results. Still, though a different discussion, it's worth reminding folks to audit their own code to see how many places they have unnecessary calls to count() when cycling through the same array in multiple places. Someone should start a "Pointers For Newbies, Reminders For Oldies" thread on the list and let everyone participate with what should be obvious - but are often overlooked - points within coding practice that can cause the programmer to develop bad habits and bad code. Who here would like to volunteer for the task? ;-P -- </Daniel P. Brown> daniel.brown@parasane.net || danbrown@php.net http://www.parasane.net/ || http://www.pilotpig.net/ Looking for hosting or dedicated servers? Ask me how we can fit your budget!

« previous php.general (#301548) next »