Linode.com Forum Forum Index Linode.com Forum
Linode Community Forums
 


Spaces or tabs in your code

Click here to go to the original topic
Goto page Previous  1, 2
 
       Linode.com Forum Forum Index -> /dev/random
Author Message
feanor



Joined: 03 Oct 2008
Posts: 1

Posted: Fri Oct 03, 2008 2:08 pm    Post subject:  

I'm with JWZ on this one: http://www.jwz.org/doc/tabs-vs-spaces.html
Back to top  
DataMatrix



Joined: 11 Oct 2008
Posts: 12

Posted: Mon Oct 20, 2008 10:44 am    Post subject:  

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.
Back to top  
chacham



Joined: 04 Mar 2004
Posts: 25
Location: Oak Park, MI

Posted: Wed Oct 22, 2008 8:50 pm    Post subject:  

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.
Back to top  
dacoffey



Joined: 18 Feb 2005
Posts: 5
Location: Morgantown, WV

Posted: Sun Oct 26, 2008 12:31 pm    Post subject:  

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.
Back to top  
hybinet



Joined: 02 May 2008
Posts: 70

Posted: Sun Oct 26, 2008 1:21 pm    Post subject:  

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.
Back to top  
JshWright



Joined: 27 Oct 2008
Posts: 2

Posted: Mon Oct 27, 2008 9:42 am    Post subject:  

I spend most of my time in Python, so 4 spaces it is.

http://www.python.org/dev/peps/pep-0008/
Back to top  
 
       Linode.com Forum Forum Index -> /dev/random Goto page Previous  1, 2
Page 2 of 2