[Grouptime-developers] coding standards
Status: Pre-Alpha
Brought to you by:
sauanimal
From: Cosimo V. <co...@da...> - 2002-09-14 10:36:54
|
I'm going to rewrite template class code according to our coding standards and to set tmpl tag to be more php-style ({} instead of <>). Reading the coding standard i found that this sentence: indentation should be used four (4) whitespaces or TAB=92s that act like four (4) whitespaces. is the worst we can do. We have to choose between spaces and tabs. A tab is A CHAR (just one) that your application (it can be your editor) *translates* it to a numbers of pseudo-spaces. But it is only a char. If I set my editor, to translate tabs to 2 spaces (or eight) it's just what I see. Anyone else will see it with its own preferences. If we combine spaces and tabs we will have something unreadable. In my opinion tabs are better because anyone can choose its own indentation and anyone will see that file the way he preferes. But if (for some reason) we choose "spaces" and not tabs, it's ok, but only spaces in that case, not tabs. Cosimo. |