|
From: Josiah B. <jb...@pr...> - 2010-06-24 00:43:01
|
Jim Barry wrote: > 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! Here, here! I agree with you, Jim - tabs are evil when used to align code other than at the start of the line - but if just for the start of the line, then TAB away. I, personally, find it difficult to navigate un-tabbed code in such as in kwrite or vim - but that's just me. I agree, Jim - tabs for start of lines are a Good thing. Regards, -Josiah |