From: Thomas W. <wi...@ac...> - 2006-01-20 01:49:59
|
Tony, Tony Van Eerd wrote: > I've found that a workable rule for tabs is to only allow tabs at the > beginning of a line. ie ONLY for indentation. ie NOT for aligning > #defines, etc. > > Thus, it doesn't matter what tab setting you use, the indents still work. > > If you convert your tabs to spaces, then the spaces have effectively > *forced* a tab/indent size upon everyone. I think that is worse. > > > If everyone followed my rule, we'd all be happy. :-) I agree ;-). Seriously the problem I was talking about is not so much the indentation level but consistency. While I certainly prefer to have the right (read my preferred) indent size I can basically live with any amount of indentation as long as it is consistent and that's where the catch is with tabs. Making sure that you always use tabs in the right way is hard (at least to me) if the right way differs on an hourly bases when switching projects. It is always easy to spot if you broke indentation by adding the wrong amount of spaces. If you add spaces instead of tabs (or the other way round) you might not notice but your poor colleague using a different tab size will. I guess my point is that it is easier to maintain consistency when using spaces only. It takes one probable cause of annoyance out of the collaboration process. Thomas -- Thomas Witt wi...@ac... |