indentation
Olivier Fourdan
fourdan.olivier at wanadoo.fr
Sat Aug 28 13:54:34 CEST 2004
Hi all,
I'm not forcing any one on using my own coding rules, but I would be
very grateful if the existing rules could be used for the packages I
wrote (like xfwm4, xfce-mcs-manager, xfce-mcs-plugins, etc.).
To name a few of the rules I use:
- I use curly braces even if there is only one instruction after an
if/while/for because I find it easier to read,
- I expand the source because I don't want tabs. Some editors use 4 or 8
caracters for a tab and that really break readability
- I use 4 cars per indentation,
- I don't use nor like Java indentation style.
I think that having different style in the same package breaks
readability and tends to make the code look "messy", even if it's
definitely not a big issue.
FYI, there are a lot more strict rules on most of the other projects I
know (Gtk, GNOME, Linux Kernel, etc.)
TIA;
Olivier.
--
- Olivier Fourdan - fourdan at xfce.org - http://www.xfce.org -
More information about the Xfce4-dev
mailing list