Linked by Thom Holwerda on Tue 4th Jul 2006 10:35 UTC, submitted by anonymous
General Development When developping in a large team, you have to make convention about the use of tab in source code. This article suggests a better solution: rather than saying that a tab character (a 'hard tab') will move the cursor until the cursor's position is a multiple of N characters, we should say that a tab character is a delimiter between table cells. This has a nice side effect, since proportional fonts can now be used.
Thread beginning with comment 140215
To read all comments associated with this story, please click here.
No tabs please
by hashnet on Tue 4th Jul 2006 15:51 UTC
hashnet
Member since:
2005-11-15

Repeat after me: Tabs are 8 characters.
When you email code you want it to look as was intended.
Same when you print code.

Aligning code such as
foo(arg1, arg2,
arg3, arg4)
with tabs will always yield different results.
To avoid all kinds of problems, use spaces.

Reply Score: 1

RE: No tabs please
by viton on Wed 5th Jul 2006 10:06 in reply to "No tabs please"
viton Member since:
2005-08-09

> Repeat after me: Tabs are 8 characters.
I always use tabs, not spaces.
Mainly because tabs are faster to type and to navigate.
Also they are more compact.

> To avoid all kinds of problems, use spaces
I using tab=8 in asm and tab=4 in c-like languages
and so does everyone in our company. So we don't have any problems ;)

Reply Parent Score: 2