Coding style

Benedikt Meurer Benedikt.Meurer at unix-ag.uni-siegen.de
Fri Mar 14 21:59:44 CET 2003


On Fri, 14, Mar 2003, edscott wilson garcia wrote:

> El vie, 14-03-2003 a las 13:28, Jens Luedicke escribió:
> > On Fri, 2003-03-14 at 14:24, Benedikt Meurer wrote:
> > 
> > > Anything important to note in addition? Opinion? Olivier, is that OK?
> > 
> > indenting: tabs instead of spaces. 
> > 
> > and I prefer:
> > 
> > if () {
> > } else {
> > }
> 
> I do this a lot for short if/else blocks, along with KNF for large
> blocks. But this is a rather minor detail for me. What is more
> important, IMHO, is that indentation be context sensitive, like the
> following line: 
> 
> gtk_tree_store_set((GtkTreeStore *) treemodel, target,
> 		 MODE_COLUMN,mode_string(en->st->st_mode),
> 		 DATE_COLUMN,time_string(en->st->st_mtime),
> 		 GROUP_COLUMN, group,
> 		 OWNER_COLUMN, owner, 
> 		 SIZE_COLUMN, tag, 
> 		 -1);
> 
> Instead of having it all run through in a single loong line.

ACK. I'd really like to see people stop writing lines with 120 and more
characters.

regards,
Benedikt

-- 
Those who do not understand Unix are condemned to reinvent it, poorly.
    -- Henry Spencer



More information about the Xfce4-dev mailing list