in reply to Re^2: bloated 'if' formatting
in thread bloated 'if' formatting
Suppose you are using a 4-character indent. You are using tabs for indentation, using a 4 character tabstop. Inside a subroutine you have an for loop, and inside its body you have a 66 character statement. On your screen, the line ends in column 74.
Now you give the code to someone who also uses 4 character wide indent, but he's using holding to the old mantra "don't change your tabstops" - his tabstops are 8 characters. Now the code he looks at not only has indents much wider than he's used to, the line that ended in column 74 on your screen will end in column 82 on his screen. Which, given a standard width of 80 characters means the code will be wrapped.
Tabs are evil, and tabstops other than 8 even more so. But if everyone is using tabstops of the same length, you might as well use spaces.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: bloated 'if' formatting
by BrowserUk (Patriarch) on Oct 07, 2005 at 10:52 UTC |