in reply to Re^2: On Coding Standards and Code Reviews
in thread On Coding Standards and Code Reviews
Tabs are a bad choice for indenting code, even if you set your editor's tabspacing to four columns. Tabs do not appear the same when printed on different output devices, or pasted into a word-processor document, or even just viewed in someone else's differently tabspaced editor.
Having lot of respect for Damian Conway I would like to point out that almost all useful editors allow you to define the tab length. Be it 2, 4 or 8 spaces. Using tabs allows every developer to have their own indentation level by defining the tab width in their preferred editor/pager/viewer settings. Using spaces forces one indentation scheme (and forcing people is a bad thing). I always tell people who are arguing over indentation that whether you choose to use tabs or spaces you must use it systematically. Do not mix tabs with spaces.
I use spaces my self (spaces are what I am accustomed to), but I do not despise tabs.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: On Coding Standards and Code Reviews
by eyepopslikeamosquito (Archbishop) on Feb 19, 2009 at 09:40 UTC | |
by puudeli (Pilgrim) on Feb 19, 2009 at 10:39 UTC | |
Re^4: On Coding Standards and Code Reviews
by Mr. Muskrat (Canon) on Feb 19, 2009 at 15:45 UTC | |
Re^4: On Coding Standards and Code Reviews
by JavaFan (Canon) on Feb 19, 2009 at 22:57 UTC | |
by puudeli (Pilgrim) on Feb 20, 2009 at 07:03 UTC |