Re: Tip For The Day
| From: | Robert Cummings | Date: | Tue, 27 Jan 2004 18:57:56 +0000 |
| Subject: | Re: Tip For The Day | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-175964@lists.php.net to get a copy of this message | ||
On Tue, 2004-01-27 at 13:49, Chris Shiflett wrote:
> --- Robert Cummings <robert@interjinn.com> wrote:
> > Event better... turn your editor's tab character to 4 spaces, then
> > your code never contains those despicable tab characters and you won't
> > accidentally insert tabs into strings :)
>
> And your file sizes increase by 25%, and you enforce your tab preference
Hard-drives are cheap, and I don't see anyone writing scripts at the Gig
level yet.
> on every other developer (rather than letting them choose their own), and
Yes but now every developer knows there's 4 spaces there, and not 3
spaces and a tab, or 2 tabs and a space, all of which can look like crap
if you change your preferred tab width anyways.
> you'd better hope that everyone's editor can perform operations on
> vertical selections of text, otherwise changes in identation becomes a
> huge hassle.
My editor does vertical selection fine.
> I think tabs are great. :-)
Its all good, it's like inline braces versus dropped braces and every
other coding style debate :) There's no winner.
Cheers,
Rob.
--
.------------------------------------------------------------.
| InterJinn Application Framework - http://www.interjinn.com
|
:------------------------------------------------------------:
| An application and templating framework for PHP. Boasting |
| a powerful, scalable system for accessing system services |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for |
| creating re-usable components quickly and easily. |
`------------------------------------------------------------'