|
From: Jim B. <ji...@ch...> - 2010-06-23 23:39:53
|
On 2010-06-24 00:04, Dirck Blaskey wrote: > My only hard and fast style rule: > * Tabs are 8 spaces, not 2, not 4 > * Don't use them. > > This may seem old fashioned, but it's old fashioned for good reason. > I've lost track of how many times > I've looked at source code and had to fuss with the editor trying 2 or 4 > or 8 until the code sort of "looks right", > and how many times the result is actually inconsistent because different > authors of the same module used different settings. > > Tabs rely on out of band information for correct formatting. Until > *everyone* is coding in a wysiwig literate programming editor, stick to > 7 bit ascii text (as much as possible) with no tabs (EVER). You're absolutely right - it does seem old fashioned! And then some!! - Jim PS didn't I mention... if tabs are used soley for beginning-of-line indentation, then it doesn't matter a jot if people use different tab widths, does it! |