Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic

Spaces or Tabs?
Spaces  56%  [ 55 ]
Tabs  44%  [ 44 ]
Total votes : 99
Author Message
 Post subject:
PostPosted: Fri Oct 03, 2008 3:08 pm 
Offline
Senior Newbie

Joined: Fri Oct 03, 2008 3:03 pm
Posts: 8
I'm with JWZ on this one: http://www.jwz.org/doc/tabs-vs-spaces.html


Top
   
 Post subject:
PostPosted: Mon Oct 20, 2008 11:44 am 
Offline
Senior Newbie

Joined: Sat Oct 11, 2008 11:49 am
Posts: 12
Definately tabs.

Why? Because it's neater. It takes bloody ages to delete a whole load of spaces, whereas only a few seconds to delete around 3-4 tabs.

_________________
http://zombie-slaughter.co.uk


Top
   
 Post subject:
PostPosted: Wed Oct 22, 2008 9:50 pm 
Offline
Junior Member

Joined: Fri Mar 05, 2004 12:30 am
Posts: 39
ICQ: 181450
Website: http://tkatch.com
AOL: TMHChacham
Location: Oak Park, MI
Both!

I code in SQL, and TABs are an absolute must to line things up. In PL/SQL code, however, i use a space for indentation so the code does not go off the side.

A kind of rule would be: space when it is block indentation, tab when it is clause indentation.


Last edited by chacham on Tue Oct 28, 2008 3:15 pm, edited 1 time in total.

Top
   
 Post subject:
PostPosted: Sun Oct 26, 2008 1:31 pm 
Offline
Senior Newbie

Joined: Fri Feb 18, 2005 7:36 am
Posts: 7
Location: Morgantown, WV
Tabs AND Spaces.

I use tabs at the front of lines to indicate indent level, while spaces are used after the code in a line starts to line up things.


Top
   
 Post subject:
PostPosted: Sun Oct 26, 2008 2:21 pm 
Offline
Senior Member

Joined: Fri May 02, 2008 8:44 pm
Posts: 1121
8-char tabs, all the time.

1) I usually work with PHP, which doesn't care about tabs or spaces.
2) I always use a GUI editor, 1680 pixels wide.


Top
   
 Post subject:
PostPosted: Mon Oct 27, 2008 10:42 am 
Offline
Senior Member

Joined: Mon Oct 27, 2008 10:24 am
Posts: 173
Website: http://www.worshiproot.com
I spend most of my time in Python, so 4 spaces it is.

http://www.python.org/dev/peps/pep-0008/


Top
   
 Post subject:
PostPosted: Sat Dec 20, 2008 6:26 pm 
Offline
Senior Newbie
User avatar

Joined: Sat Dec 20, 2008 5:58 pm
Posts: 5
Website: http://grubbn.org
WLM: nathangrubb@hotmail.com
Yahoo Messenger: nathangrub
AOL: nathangrubbW
Location: Washington state, USA
4 spaces.


Top
   
 Post subject:
PostPosted: Sat Dec 20, 2008 7:00 pm 
Offline

Joined: Tue Nov 27, 2007 6:52 am
Posts: 1
I use 4 spaces because we (that is, the team I work with) follows the Zend Framework coding guidelines.

But I think using tabs makes a lot more sense. That's what tabs are for, after all: aligning things. And it's nice to be able to define a tab size that suits you, regardless of what the others are using.


Top
   
 Post subject:
PostPosted: Sat Dec 20, 2008 8:05 pm 
Offline
Senior Member

Joined: Sun Nov 30, 2008 3:40 pm
Posts: 109
Definetely spaces. The reason is simple, "a single space" always has a fixed width, whereas "a single tab" is a vague concept whose width depends entirely on the user. So, for interoperability causes and stuff like that, I say spaces.

Those are too attached to tabs can use soft tabs anyway.


Top
   
 Post subject:
PostPosted: Wed Dec 31, 2008 1:38 pm 
Offline
Senior Newbie

Joined: Sun Jun 22, 2008 11:35 am
Posts: 7
I'm a Rubyist, so a size 2 soft tab for me.


Top
   
 Post subject:
PostPosted: Wed Dec 31, 2008 3:14 pm 
Offline
Junior Member

Joined: Tue Jul 20, 2004 11:32 am
Posts: 41
Website: http://www.insanum.com
SPACES! Tabs are so annoying and there is nothing worse than when some dude edits your code with Visual Studio or something and starts inter-mixing tabs and spaces. Even worse when they have their tabstop set at 8 chars.

Even if you like using the tab key configure your editor to enter "4 spaces" for a tab. All good editors can do this. And if you use vim... this command is your friend:

:retab

:-)


Top
   
 Post subject:
PostPosted: Thu Jan 01, 2009 10:16 pm 
Offline
Senior Member

Joined: Fri Feb 17, 2006 9:47 pm
Posts: 91
cmelbye wrote:
I'm a Rubyist, so a size 2 soft tab for me.


+1


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group