Re: Sometimes I wonder why I even started programming...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 28 Feb 2008, at 19:17, Wolf wrote:
Jason Pruim wrote:
My editor automatically replaces like 4 spaces with a tab... Is there a reason not to use tabs instead of spaces? :)

I use spaces since when I indent with 4 spaces it is significantly easier to read the code then with 4 tabs...

   4 spaces are before this
				4 tabs are before this

Pretty easy to follow code that does
{
{
 {
  {
  }
 }
}
}

Versus the alternative, especially with the character wrapping in vi and other text editors.

At least, that's IMO

YMMV

Except that if I inherit your code and I find it easier if it's indented to 8 spaces you've taken that choice away from me. Tabs are configurable on nearly all editors that exist in the world. If yours doesn't let you change the tab width, get a new one. But if you don't care about people who might end up working on your stuff, keep using spaces. Just hope you never change your mind.

-Stut

--
http://stut.net/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux