Re: Re: ctype function (re?)naming

From: Date: Thu, 08 Mar 2001 03:22:56 +0000
Subject: Re: Re: ctype function (re?)naming
References: 1 2 3 4 5 6 7 8 9 10 11  Groups: php.qa 
Request: Send a blank email to php-qa+get-2494@lists.php.net to get a copy of this message
On 7 Mar 2001 09:16:15 -0800, Zak Greant <zak@nucleus.com> wrote: >> It's always better to write a few extra characters if it makes your code >> much more readable. > >Agreed. We could try to save a bit of space doing /error/err/ or >/string/str/ or /number/num/. Where do we draw the line on >length/convenience vs. readability? I'd say it shouldn't go any further than extremely common industry-wide abbreviations - e.g. err, www, sql, db. Programming speed is rarely limited by text entry speed and while there are many possible abbreviations, there's only one correct full version - the typing saved will be wasted several times over when you have to open the manual to find out whether RecordNumber was abbreviated to RecordNum, RecordNo, RecNumber, RecNum, RecNo, RNum, RNo or, in pathological cases, RN.

« previous php.qa (#2494) next »