not very good.
for example
do not use
if (foo) {
}
//it is easier to find missing curly bracket in the following way
if ( foo )
{
}
Always use curly bracket for if and for loop
do not do this
if ( something )
a = b;
instead
if ( something )
{
a =b;
}
the reason is that people may want to add things to if or for loop and make stupid mistakes like
if ( something )
a = b;
c = d;
the right one is
if ( something )
{
a = b;
c = d;
}
Try code standard in google.com
Enforce code standard use in your group and company
make the code look like the same for all developers.
Developers are not allowed to use their coding styles.
All should use the same style whether they like or not.
The purpose of doing this is to reduce maintenance cost and save money.[ 此帖被steinlee在2010-02-09 01:00重新编辑 ]