>If you don't work for a company, choose the standards which you think are best and stick to them.
And keep an open mind. Be prepared to change your mind and use another style if your tastes change or you find a strong argument against what you use. Case in point: As many people here probably know, my style has been very unique (to my knowledge):
Code:
#include <stdio.h>
/*
** K&R bracing,
** Lots of whitespace between tokens,
** Two space indention
*/
int main ( void )
{
int i;
for ( i = 0; i < 10; i++ ) {
printf ( "%d\n", i );
}
return 0;
}
Recently though, I've begun to fall into a more common style and found it to be more pleasing as well as easier to write:
Code:
#include <stdio.h>
/*
** Allman bracing,
** Less whitespace between tokens,
** Four space indention
*/
int main(void)
{
int i;
for (i = 0; i < 10; i++)
{
printf("%d\n", i);
}
return 0;
}