TabsVsSpaces

HomePage | RecentChanges | EditorIndex | TextEditorFamilies | Preferences

This is one of the CommonGripes and one of the HolyWars.

[Jamie Zawinski] has a great [page] on this subject.

I would some up his views and add a few of my own as follows:

Thoughts?


There's an interesting discussion between "tab people" and "space people" at http://c2.com/cgi/wiki?TabsVersusSpaces .


TabsVsSpaces is a specific instance of the Holy Wars over coding styles, I think.

I favor the attitude taken by the Tcl developers in urging their preferred style for Tcl code: 'The important thing isn't whether it's "better", it's that we all do it the same way.' Consistency is all. Different projects have adopted different conventions, and people working on the projects should adhere to them. It makes reading and comprehension easier, which is the whole point to having a convention.

I set my editors to render tabs as spaces on screen, defaulting to indentation levels of four. I also set them to use spaces rather than actual tab characters. There are some edge cases like Makefiles in which the programs which read them really want to see an actual tab char and barf if they don't, but those are the exception, and should be handled as such.

--DMcCunney


HomePage | RecentChanges | EditorIndex | TextEditorFamilies | Preferences
Edit text of this page | View other revisions
Last edited October 23, 2007 7:33 am (diff)
Search: